| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RIO.PrettyPrint.Simple
Description
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 Methods | |
| HasProcessContext SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple Methods | |
| HasTerm SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple | |
| HasStylesUpdate SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple Methods stylesUpdateL :: Lens' SimplePrettyApp StylesUpdate Source # | |
Arguments
| :: 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
Arguments
| :: 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_VERBOSEenvironment variable is set, turns on verbose logging - Default process context
- Logging using color
Since: 0.1.3.0