| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
CabalGild.Main
Description
This module defines the main entry point for the application.
Synopsis
- defaultMain :: IO ()
- onException :: SomeException -> IO a
- mainWith :: (MonadLog m, MonadRead m, MonadThrow m, MonadWalk m, MonadWrite m) => String -> [String] -> m ()
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.
onException :: SomeException -> IO a Source #
If the exception was an ExitCode, simply exit with that code.
Otherwise handle exceptions by printing them to STDERR using
displayException instead of show. Then exit with a failing
status code.