Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Represents the context necessary to run the program. This is essentially a
simplified Config
.
fromConfig :: (MonadLog m, MonadThrow m) => Config -> m Context Source #
Creates a Context
from a Config
. If the help or version was
requested, then this will throw an ExitSuccess
. Otherwise this makes
sure the config is valid before returning the context.