Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => MonadWrite m where
- write :: Maybe FilePath -> ByteString -> m ()
Documentation
class Monad m => MonadWrite m where Source #
A Monad
that can also write output, either to standard output (STDOUT)
or to a file.
write :: Maybe FilePath -> ByteString -> m () Source #
Writes output to the given file, or to STDOUT if the given file is
Nothing
.
Instances
MonadWrite IO Source # | |
Defined in CabalGild.Class.MonadWrite |