Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module exports a SimplePrettyApp
type, for providing a basic environment
including pretty printing functionality.
Synopsis
- data SimplePrettyApp
- mkSimplePrettyApp :: MonadIO m => LogFunc -> Maybe ProcessContext -> Bool -> Int -> StylesUpdate -> m SimplePrettyApp
- runSimplePrettyApp :: MonadIO m => Int -> StylesUpdate -> RIO SimplePrettyApp a -> m a
Documentation
data SimplePrettyApp Source #
A simple, non-customizable environment type, which provides pretty printing functionality.
Since: 0.1.3.0
Instances
HasLogFunc SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple | |
HasProcessContext SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple | |
HasTerm SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple | |
HasStylesUpdate SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple |
:: MonadIO m | |
=> LogFunc | |
-> Maybe ProcessContext | |
-> Bool | Use color? |
-> Int | Terminal width |
-> StylesUpdate | |
-> m SimplePrettyApp |
Constructor for SimplePrettyApp
. If ProcessContext
is not supplied
mkDefaultProcessContext
will be used to create it.
Since: 0.1.3.0
:: MonadIO m | |
=> Int | Terminal width |
-> StylesUpdate | |
-> RIO SimplePrettyApp a | |
-> m a |
Run with a default configured SimplePrettyApp
, consisting of:
- Logging to
stderr
- If the
RIO_VERBOSE
environment variable is set, turns on verbose logging - Default process context
- Logging using color
Since: 0.1.3.0