Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- defaultMain :: IO ()
- mainWith :: (MonadLog m, MonadRead m, MonadThrow m, MonadWalk m, MonadWrite m) => [String] -> m ()
- format :: (MonadThrow m, MonadWalk m) => FilePath -> ByteString -> m ByteString
Documentation
defaultMain :: IO () Source #
This is the main entry point for the application. It gets the command line
arguments and then hands things off to mainWith
. If any exceptions are
thrown, they will be handled by onException
.
mainWith :: (MonadLog m, MonadRead m, MonadThrow m, MonadWalk m, MonadWrite m) => [String] -> m () Source #
The actual logic for the command line application. This is written using
constraints so that it can be run in pure code if so desired. But most often
this will be run in IO
.
format :: (MonadThrow m, MonadWalk m) => FilePath -> ByteString -> m ByteString Source #