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

Modulemicrostache-1.0.3Haskell2010

Text.Microstache.Type

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

  • 6 types
  • 3 values
datadata Template
#

Mustache template as name of “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

Instances7Eq, Data, Ord, Show, Generic, Semigroup, …
datadata Node
#

Structural element of template.

Constructors

Instances6Eq, Data, Ord, Show, Generic, Rep
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

Instances9Eq, 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

Instances8Eq, Data, Ord, Show, IsString, Generic, …
datadata MustacheException
#

Exception that is thrown when parsing of a template has failed or referenced values were not provided.

Constructors

Instances5Eq, Show, Generic, Exception, Rep
datadata MustacheWarning
#

Constructors

Instances5Eq, Show, Generic, Exception, Rep