úν†  ' The parser state. Like +, but with an applicative lookup function. 7A mapping from placeholders in the template to values. A template fragment. A representation of a  Data.Text template, supporting efficient  rendering. Show the template string. @Create a template from a template string. A malformed template  string will raise an . @Create a template from a template string. A malformed template  string will cause  to return Left (row, col), where  row starts at 1 and col at 0. 3Perform the template substitution, returning a new . Like 3, but allows the lookup to have side effects. The E lookups are performed in order that they are needed to generate the  resulting text. DYou can use this e.g. to report errors when a lookup cannot be made * successfully. For example, given a list ctx of key-value pairs  and a  tmpl:   renderA tmpl (flip lookup ctx)  will return , if any of the placeholders in the template  don' t appear in ctx and  Just text otherwise. 3Perform the template substitution, returning a new . A ) malformed template string will raise an  . Note that 3 substitute tmpl ctx == render (template tmpl) ctx /Perform the template substitution in the given ,  returning a new  . Note that 5 substituteA tmpl ctx == renderA (template tmpl) ctx  !"#$%&'()*    +       !"#$%&'()*+,-./01template-0.2.0.5Data.Text.TemplateContextAContextTemplate showTemplatetemplate templateSaferenderrenderA substitute substituteAParserSFragVarLitshowFragbaseGHC.ErrerrortemplateFromFrags combineLits text-0.11.1.5Data.Text.Lazy.InternalText Data.MaybeNothingControl.Applicative ApplicativepFrags pFragsSafepVarpVarSafe pIdentifierpIdentifierSafepLit isIdentifier0 isIdentifier1 parseErrorparseErrorSafemakeParseErrorMessagecharpeekpeekSnd takeWhilediscardpos runParser