3 ms·In Haskell, this is done with the Managed monad or ResourceT if you're feeling impure.by tathougies 6y agoIn Haskell, this is done with the Managed monad or ResourceT if you're feeling impure.