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.Type

Types used in the package. You don't usually need to import the module, because Text.Mustache re-exports everything you may need, import that module instead.

Synopsis
  • Packagestache-2.4.0
  • Exports8
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceType.hs
datadata Template

Mustache template as the name of the “top-level” template and a collection of all available templates (partials).

Template is a Semigroup. This means that you can combine Templates (and their caches) using the (<>) operator, the resulting Template will have the same currently selected template as the left one. Union of caches is also left-biased.

Constructors

Instances8Eq, Data, Ord, Show, Generic, Semigroup, …
datadata Node

A structural element of a template.

Constructors

Instances7Eq, Data, Ord, Show, Generic, Lift, …
newtypenewtype Key

Identifier for values to interpolate.

The representation is the following:

  • []—empty list means implicit iterators;

  • [text]—single key is a normal identifier;

  • [text1, text2]—multiple keys represent dotted names.

Constructors

Instances10Eq, Data, Ord, Show, Generic, Semigroup, …
valueshowKey :: Key -> Text

Pretty-print a key. This is helpful, for example, if you want to display an error message.

newtypenewtype PName

Identifier for partials. Note that with the OverloadedStrings extension you can use just string literals to create values of this type.

Constructors

Instances9Eq, Data, Ord, Show, IsString, Generic, …
newtypenewtype MustacheException

Exception that is thrown when parsing of a template fails or referenced values are not provided.

Constructors

Instances5Eq, Show, Generic, Exception, Rep

Warning that may be generated during rendering of a Template.

Constructors

Instances4Eq, Show, Generic, Rep