HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulestache-2.4.0GHC2021

Text.Mustache.Render.Internal

Internal machinery of the rendering monad.

Synopsis
  • 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.