HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduletemplate-haskell-2.22.0.0Haskell2010

Language.Haskell.TH.PprLib

Monadic front-end to Text.PrettyPrint

  • 2 types
  • 45 values

The document type

2 declarations
datadata PprM a
#
Instances4Monad, Functor, Show, Applicative
  • Monad PprMDefined in template-haskell-2.22.0.0 · Language.Haskell.TH.PprLib
  • Functor PprMDefined in template-haskell-2.22.0.0 · Language.Haskell.TH.PprLib
  • Show DocDefined in template-haskell-2.22.0.0 · Language.Haskell.TH.PprLib
  • Applicative PprMDefined in template-haskell-2.22.0.0 · Language.Haskell.TH.PprLib

Primitive Documents

14 declarations

Converting values into documents

8 declarations

Wrapping documents in delimiters

5 declarations

Combining documents

14 declarations
value($$)
  1. :: Doc
  2. -> Doc
  3. -> Doc

    Above; if there is no overlap it "dovetails" the two

#
valuefsep
  1. :: [Doc]
  2. -> Doc

    "Paragraph fill" version of sep

#
valuefcat
  1. :: [Doc]
  2. -> Doc

    "Paragraph fill" version of cat

#
valuepunctuate
  1. :: Doc
  2. -> [Doc]
  3. -> [Doc]
    punctuate p [d1, ... dn] = [d1 <> p, d2 <> p, ... dn-1 <> p, dn]
#

Predicates on documents

4 declarations