Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provide a
datatype, for providing a basic SimpleApp
App
-like
environment with common functionality built in. This is intended to
make it easier to, e.g., use rio's logging and process code from
within short scripts.
Since: 0.1.3.0
Synopsis
- data SimpleApp
- mkSimpleApp :: MonadIO m => LogFunc -> Maybe ProcessContext -> m SimpleApp
- runSimpleApp :: MonadIO m => RIO SimpleApp a -> m a
Documentation
A simple, non-customizable environment type for RIO
, which
provides common functionality. If it's insufficient for your needs,
define your own, custom App
data type.
Since: 0.1.3.0
Instances
HasLogFunc SimpleApp Source # | |
HasProcessContext SimpleApp Source # | |
Defined in RIO.Prelude.Simple |
mkSimpleApp :: MonadIO m => LogFunc -> Maybe ProcessContext -> m SimpleApp Source #
Constructor for SimpleApp
. In case when ProcessContext
is not supplied
mkDefaultProcessContext
will be used to create it.
Since: 0.1.14.0