Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A monadic interface to configurable pretty-printing.
Synopsis
- class HasPrettyConfig env config | env → config where
- prettyConfig ∷ Lens' env config
- type MonadPretty config env m = (MonadReader env m, HasPrettyConfig env config)
- prettyM ∷ (MonadPretty config env m, PrettyBy config a) ⇒ a → m (Doc ann)
- displayM ∷ ∀ str a m env config. (MonadPretty config env m, PrettyBy config a, Render str) ⇒ a → m str
Documentation
class HasPrettyConfig env config | env → config where Source #
A constraint for "config
is a part of env
".
prettyConfig ∷ Lens' env config Source #
Instances
HasPrettyConfig (Sole config) config Source # | It's not possible to have |
Defined in Text.PrettyBy.Fixity prettyConfig ∷ Lens' (Sole config) config Source # |
type MonadPretty config env m = (MonadReader env m, HasPrettyConfig env config) Source #
A constraint for "m
is a monad that allows to pretty-print values in it by a config
".