Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pencil's run and error types.
Documentation
type PencilApp = ReaderT Config (ExceptT PencilException IO) Source #
The primary monad transformer stack for a Pencil application.
This unrolls to:
PencilApp a = Config -> IO (Except PencilException a)
The ExceptT
monad allows us to catch "checked" exceptions; errors that we
know how to handle, in PencilException. Note that Unknown "unchecked"
exceptions can still go through IO.