Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Pipes.Safe.Prelude
Contents
Description
Simple resource management functions
Handle management
withFile :: MonadSafe m => FilePath -> IOMode -> (Handle -> m r) -> m r Source #
Acquire a Handle
within MonadSafe
String I/O
Note that String
s are very inefficient, and I will release future separate
packages with ByteString
and Text
operations.
I only provide these to allow users to test simple I/O without requiring any
additional library dependencies.