HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulestache-2.4.0GHC2021

Text.Mustache.Render.Internal

Internal machinery of the rendering monad.

  • 2 types
  • 10 values
  • Packagestache-2.4.0
  • Exports12
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceInternal.hs
newtypenewtype R a
#

The R monad supports printing with some helpful functionality to deal with indentation.

Instances3Monad, Functor, Applicative
  • Monad RDefined in stache-2.4.0 · Text.Mustache.Render.Internal
  • Functor RDefined in stache-2.4.0 · Text.Mustache.Render.Internal
  • Applicative RDefined in stache-2.4.0 · Text.Mustache.Render.Internal
valuetxt
  1. :: IndentationPolicy

    Indentation policy to use

  2. -> Text

    The text to output

  3. -> R ()
#

Output text, handling indentation appropriately. When we're at the beginning of a line and the indentation level is non-zero, we first output the appropriate amount of spaces.