Safe Haskell | Safe-Inferred |
---|
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 whereSource
Class for all handle-finalizing monads. Required for file redirections.
MonadIO m => ChFinalizer (HandleCloserT m) | |
ChFinalizer m => ChFinalizer (InRedirT m) | |
ChFinalizer m => ChFinalizer (HereStringT m) | |
ChFinalizer m0 => ChFinalizer (ScannerBufferT m0) | |
ChFinalizer m0 => ChFinalizer (RecorderT m0) | |
ChFinalizer m0 => ChFinalizer (OutRedirT m0) | |
ChFinalizer m0 => ChFinalizer (DeafT m0) | |
ChFinalizer m0 => ChFinalizer (SpawnOverlayT m0) | |
ChFinalizer m0 => ChFinalizer (JoinerT m0) | |
ChFinalizer m0 => ChFinalizer (HandleFilterT m0) | |
ChFinalizer m0 => ChFinalizer (BoolFilterT m0) | |
ChFinalizer m0 => ChFinalizer (IntFilterT m0) | |
ChFinalizer m0 => ChFinalizer (HandleArchiverT m0) | |
ChFinalizer m0 => ChFinalizer (BoolArchiverT m0) | |
ChFinalizer m0 => ChFinalizer (IntArchiverT m0) | |
ChFinalizer m0 => ChFinalizer (NullExpanderT m0) | |
ChFinalizer m0 => ChFinalizer (ExpanderT m0) | |
ChFinalizer m0 => ChFinalizer (HistoryT m0) | |
ChFinalizer m0 => ChFinalizer (HtmlPrinterT m0) | |
ChFinalizer m0 => ChFinalizer (AnsiPrinterT m0) |
newtype HandleCloserT m a Source
Handle-closing transformer
HandleCloser | |
|
MonadTrans HandleCloserT | |
ChChannelPrinter Bool m0 => ChChannelPrinter Bool (HandleCloserT m0) | |
ChChannelPrinter Int m0 => ChChannelPrinter Int (HandleCloserT m0) | |
ChChannelPrinter Handle m0 => ChChannelPrinter Handle (HandleCloserT m0) | |
Monad m => Monad (HandleCloserT m) | |
Monad m => Functor (HandleCloserT m) | |
MonadIO m => MonadIO (HandleCloserT m) | |
ChRandom m0 => ChRandom (HandleCloserT m0) | |
ChClock m0 => ChClock (HandleCloserT m0) | |
MonadIO m => ChFinalizer (HandleCloserT m) | |
ChScanner m0 => ChScanner (HandleCloserT m0) | |
ChBufferedScanner m0 => ChBufferedScanner (HandleCloserT m0) | |
ChPrinter m0 => ChPrinter (HandleCloserT m0) | |
ChSpawn m0 => ChSpawn (HandleCloserT m0) | |
ChExpand m0 => ChExpand (HandleCloserT m0) | |
ChExpanderEnv m0 => ChExpanderEnv (HandleCloserT m0) | |
ChHistoryEnv m0 => ChHistoryEnv (HandleCloserT m0) |
withLazyIO :: (MonadIO m, Functor m) => HandleCloserT m a -> m aSource
Run function with handle closer