HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleprettyprinter-configurable-1.36.0.0Haskell2010

Text.PrettyBy.Monad

A monadic interface to configurable pretty-printing.

  • 1 type
  • 1 class
  • 2 values
classclass HasPrettyConfig env config | env -> config where
#

A constraint for "config is a part of env".

Methods

Instances1HasPrettyConfig
  • HasPrettyConfig (Sole config) configDefined in prettyprinter-configurable-1.36.0.0 · Text.PrettyBy.Fixity

    It's not possible to have HasPrettyConfig config config, because that would mean that every environment is a pretty-printing config on its own, which doesn't make sense. We could have an OVERLAPPABLE instance, but I'd rather not.

valueprettyM :: (MonadPretty config env m, PrettyBy config a) => a -> m (Doc ann)
#

Pretty-print a value in a configurable way in a monad holding a config.

valuedisplayM
  1. :: (MonadPretty config env m, PrettyBy config a, Render str)
  2. => a
  3. -> m str
#

Pretty-print and render a value as a string type in a configurable way in a monad holding a config.