rio- A standard library for Haskell

Safe HaskellNone



Provide a SimpleApp datatype, for providing a basic 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: rio-



data SimpleApp Source #

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: rio-

runSimpleApp :: MonadIO m => RIO SimpleApp a -> m a Source #

Run with a default configured SimpleApp, consisting of:

  • Logging to stderr
  • If the RIO_VERBOSE environment variable is set, turns on verbose logging
  • Default process context

Since: rio-