Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Provides handle-closing.
- class Monad m => ChFinalizer m where
- newtype HandleCloserT m a = HandleCloser {
- runHandleCloserT :: [Handle] -> m (a, [Handle])
- withLazyIO :: (MonadIO m, Functor m) => HandleCloserT m a -> m a
Documentation
class Monad m => ChFinalizer m where Source
Class for all handle-finalizing monads. Required for file redirections.
newtype HandleCloserT m a Source
Handle-closing transformer
HandleCloser | |
|
withLazyIO :: (MonadIO m, Functor m) => HandleCloserT m a -> m a Source
Run function with handle closer