HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulestache-2.3.4Haskell2010

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.

  • 6 types
  • 2 values
  • Packagestache-2.3.4
  • Exports8
  • LanguageHaskell2010
  • LicenceMIT
  • 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
datadata MustacheWarning
#

Warning that may be generated during rendering of a Template.

Constructors

Instances4Eq, Show, Generic, Rep