%      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                 SafeAOT     None9;I &Types that support conversion to HTML. A chunk of HTML source.!Extract HTML source code from an Html value.,Convert a chunk of HTML source code into an Html value as-is. Note that this bypasses any and all HTML encoding; the caller is responsible for taking appropriate measures against XSS and other potential vulnerabilities. In other words, the input to this function is considered pre-sanitized."Safely convert plain text to HTML.$HTML-encode an individual character.!Html itself is a trivial instance6String is automatically HTML-encoded and converted to "Text is automatically HTML-encoded     None9;<=OT6QA key/value pair, used for constructing dictionary GVals using a compact syntax.#Types that implement conversion to  .GA function that can be called from within a template execution context. A variant type designed as the unitype for the template language. Any value referenced in a template, returned from within a template, or used in a template context, will be a  . m, in most cases, should be a .#Some laws apply here, most notably:when + is , then all of ), &, (, %, ", #, and * should produce  when + is , then ' should produce !when ( is not  , then ' should only return ! for exactly zero  -ness of * should match one or both of " / #""Convert value to list, if possible#=Convert value to association list ("dictionary"), if possible$"Convert value to a lookup function%Render value as HTML&Render value as plain-text'Get value's truthiness(&Convert value to a number, if possible)1Access value as a callable function, if it is one*6Get length of value, if it is a collection (list/dict)+Check if the value is null,1Provide a custom JSON representation of the value-7Marshal a GVal between carrier monads. This will lose ) information, because functions cannot be transferred to other carrier monads, but it will keep all other data structures intact../Marshal a GVal between carrier monads. Unlike -, )V information is retained by hoisting them using the provided hoisting functions. For Run monads, which is what   is typically used with, the hoistRun@ function can be used to construct suitable hoisting functions.0Convenience wrapper around # to represent a   as a ".1]Match arguments passed to a function at runtime against a list of declared argument names. !matchFuncArgs argNames argsPassed returns ((matchedArgs, positionalArgs, namedArgs) , where  matchedArgsR is a list of arguments matched against declared names (by name or by position), positionalArgs5 are the unused positional (unnamed) arguments, and  namedArgs are the unused named arguments.84Silly helper function, needed to bypass the default # instance of $ in order to make integral $s look like integers.:Turn a  into a  ;{Construct a dictionary GVal from a list of pairs. Internally, this uses a hashmap, so element order will not be preserved.<Construct an ordered dictionary GVal from a list of pairs. Internally, this conversion uses both a hashmap (for O(1) lookup) and the original list, so element order is preserved, but there is a bit of a memory overhead.=(Construct a pair from a key and a value.>Alias for '(~:)'.?TThis operator allows constructing heterogenous lists using cons-style syntax, e.g.:EasText $ list ("Found " ~: (6 :: Int) ~: " items" ~: [] :: [GVal IO])"Found 6 items"@AConstruct a GVal from a list of GVals. This is equivalent to the  implementation of [GVal m]:, but typed more narrowly for clarity and disambiguation.A-Check if the given GVal is a list-like objectB3Check if the given GVal is a dictionary-like objectCTreat a   as a flat list and look up a value by integer index. If the value is not a List, or if the index exceeds the list length, return  .DHelper function; look up a value by an integer index when the index may or may not be available. If no index is given, return  .EeStrictly-typed lookup: treat value as a dictionary-like object and look up the value at a given key.FLoosely-typed lookup: try dictionary-style lookup first (treat index as a string, and container as a dictionary), if that doesn't yield anything (either because the index is not string-ish, or because the container doesn't provide dictionary-style access), try index-based lookup.GLike F, but fall back to the given default value if the key is not in the dictionary, or if the indexee is not a dictionary-like object.ITreat a  E as a dictionary and list all the keys, with no particular ordering.J Convert a   to a number.K Convert a   to an %e. The conversion will fail when the value is not numeric, and also if it is too large to fit in an %.L Convert a   to an %=, falling back to the given default if the conversion fails.M Convert a   to an %4, falling back to zero (0) if the conversion fails.NLoose cast to boolean.9Numeric zero, empty strings, empty lists, empty objects, Null, and boolean !S are considered falsy, anything else (including functions) is considered true-ish.O-Dynamically cast to a function. This yields & a  if the value is a function,   if it's not.hConvert Aeson Values to  ps over an arbitrary host monad. Because JSON cannot represent functions, this conversion will never produce a . Further, the ToJSON instance for such a   will always produce the exact Value" that was use to construct the it.i%This instance is slightly wrong; the ', (, and &e methods all treat the HTML source as plain text. We do this to avoid parsing the HTML back into a  (and dealing with possible parser errors); the reason this instance exists at all is that we still want to be able to pass pre-rendered HTML around sometimes, and as long as we don't call any numeric or string functions on it, everything is fine. When such HTML values accidentally do get used as strings, the HTML source will bleed into the visible text, but at least this will not introduce an XSS vulnerability.-It is therefore recommended to avoid passing  K values into templates, and also to avoid calling any string functions on  f values inside templates (e.g. capturing macro output and then passing it through a textual filter).l*Single characters are treated as length-1 s.mString ->   conversion uses the ' class; because String, is an alias for '[Char]', there is also a  instance for StringA, but it marshals strings as lists of characters, i.e., calling 3 on a string produces a list of characters on the   side.nGBooleans render as 1 or empty string, and otherwise behave as expected.{" of  becomes a dictionary-like  |Haskell lists become list-like  s}  becomes NULL, & unwraps.Trivial instance for   itself.6Converting to HTML hooks into the ToHtml instance for W for most tags. Tags that have no obvious textual representation render as empty HTML.For convenience, #A is implemented in a way that looks similar to JavaScript / JSONGConversion to JSON values attempts the following conversions, in order: check the + property; if it is , always return Null!, even if the GVal implements ,,"# (through 0)(&DNote that the default conversions will never return booleans unless , explicitly does this, because & will always return *something*. The default   is equivalent to NULL.m !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~> !*+"#$%&'(),-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUm !"#$%&'()*+,-./01~}|{zyxw2v3u4t5s6r7qpo8nmlkjih9:;<=>?@ABCDEFGHIJKLMNOPQRgfedcba`_^]\[ZYXWVSTU^ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~=8?5None2!=Expressions, building blocks for the expression minilanguage.#String literal expression: "foobar"!Numeric literal expression: 123.4 Boolean literal expression: true Literal nullVariable reference: foobar$List construct: [ expr, expr, expr ]1Object construct: { expr: expr, expr: expr, ... }foo[bar] (also dot access)foo(bar=baz, quux)(foo, bar) -> exprexpr ? expr : exprdo { statement; }A catch blockGinger statements.!A sequence of multiple statements&Run wrapped statement in a local scope:Establish an indented context around the wrapped statement,Literal output (anything outside of any tag){{ expression }}Evaluate expression:{% if expression %}statement{% else %}statement{% endif %}z{% switch expression %}{% case expression %}statement{% endcase %}...{% default %}statement{% enddefault %}{% endswitch %};{% for index, varname in expression %}statement{% endfor %}{% set varname = expr %}+{% macro varname %}statements{% endmacro %}{% include "template" %}The do-nothing statement (NOP)Try  catch  finallyA block definition (  {% block %} )A macro definition (  {% macro %} )?Top-level data structure, representing a fully parsed template.A context variable name.838 None 59;<=LT +Error information for Ginger parser errors.Human-readable error messageUsed to resolve includes. Ginger will call this function whenever it encounters an {% include %}, {% import %}, or {% extends %} directive. If the required source code is not available, the resolver should return Nothing, else Just the source.(Input type for the parser (source code).(DHelper function to create a Ginger parser error from a Parsec error. Parse Ginger source from a file. Parse Ginger source from memory. Parse Ginger source from a file. Parse Ginger source from memory.)*+,-(./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)*+,-(./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ None 9:;<=LT8Internal type alias for our template-runner monad stack.Generic runtime erroreTried to use a block that isn't defined | Invalid arguments to function (function name, explanation)Wrong type, expected one of... Invalid indexA ! determines the rules by which a h~ value can be split into lines, how a list of lines can be joined into a single value, and how to remove leading whitespace.%Typeclass that defines how to encode  s into a given type.sExecution context. Determines how to look up variables from the environment, and how to write out template output./Hoist a context onto a different output type. hoistContext fwd rev context? returns a context over a different output type, applying the fwd and revG projections to convert between the original and desired output types.Create an execution context for runGingerT. Takes a lookup function, which returns ginger values into the carrier monad based on a lookup key, and a writer function (outputting HTML by whatever means the carrier monad provides, e.g. putStr for IO, or tell for Writers).Create an execution context for runGinger. The argument is a lookup function that maps top-level context keys to ginger values.  is a specialized version of , targeting the   H monad (which is what is used for the non-monadic template interpreter  runGinger).The type of the lookup function may look intimidating, but in most cases, marshalling values from Haskell to Ginger is a matter of calling S on them, so the 'GVal (Run (Writer Html))' part can usually be ignored. See the    module for details.Hoist a R onto a different output type. You don't normally need to use this directly; see  and/or ..Helper; reinstates newlines after splitting a  into lines.Hoist a R onto a different output type. You don't normally need to use this directly; see  and/or .!Lift a value from the host monad m into the  monad.$Lift a function from the host monad m into the  monad.Hoist a ' action onto a different output type. hoistRun fwd rev action hoists the action from  Run p m h a to  Run p m t a , applying fwd and rev& to convert between the output types.withSourcePos pos action runs action; in a context where the current source location is set to pos1. The original source position is restored when action finishes.1Encoding to Html is implemented as returning the % representation.PEncoding to text just takes the text representation without further processing.K;.None 9:;<=LTYMatch args according to a given arg spec, Python style. The return value is a triple of '(matched, args, kwargs, unmatchedNames) , where matches is a hash map of named captured arguments, args is a list of remaining unmatched positional arguments, kwargs is a list of remaining unmatched named arguments, and unmatchedNames8 contains the argument names that haven't been matched.6Parse argument list into type-safe argument structure.8Parse argument list into flat list of matched arguments. NonexHelper function to run a State action with a temporary state, reverting to the old state after the action has finished.xHelper function to run a Scope action with a temporary scope, reverting to the old scope after the action has finished.)Override the encoder used for converting  \s to the output type. This can be used for things like temporarily disabling HTML encoding. None 9:;<=LT[/     /     /     None 9:;<=LT[ @Simplified interface to render a ginger template "into" a monad.!easyRenderM emit context template renders the template with the given contextc object (which should represent some sort of dictionary-like object) by feeding any output to the emit function.CSimplified interface to render a ginger template in a pure fashion.easyRender context template renders the template with the given contextk object (which should represent some sort of dictionary-like object) by returning the concatenated output.APurely expand a Ginger template. The underlying carrier monad is  h;, which is used to collect the output and render it into a h value. 'Monadically run a Ginger template. The m parameter is the carrier monad.8Find the effective base template of an inheritance chainRun a template.2Run an action within a different template context.$Run an action within a block contextRun one statement.(Deeply magical function that converts a  into a Function.HRun p (evaluate) an expression and return its value into the Run p monad[Helper function to output a HTML value using whatever print function the context provides.  !"#$%&'(    !"#$%&'( None 9:;<=IT%)*+,-  ./0123456789:;<=>?@ABCD      !)*+,-  ./0123456789:;<=>?@ABCD   None !*+"#$%&'(),-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTU   E !"#$%&'()*+,-./  0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                       ! "#$%&'()*+,-().+,/012(34567+,8()9(:;<=>>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                                                  ! " # $ %&'()*+,-./0123456789 : : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S TU%ginger-0.7.2.0-6oAKkJfP6lWDjTSqQk7iSDText.Ginger.Parse Text.PrintfAText.Ginger.HtmlText.Ginger.GValText.Ginger.ASTText.Ginger.RunText.Ginger.Run.FuncUtilsText.Ginger.Run.VMText.Ginger.OptimizerText.Ginger.Run.Type Text.GingerGValText.Ginger.Run.Builtins$parsec-3.1.11-DytKT37FVYQJRVdRwnazC8Text.Parsec.Pos sourceColumn sourceLine sourceName SourceName SourcePos PrintfTypeTTunT PrintfArgTPprintfaToHtmltoHtmlHtml htmlSource unsafeRawHtmlhtml $fToHtmlHtml $fToHtml[] $fToHtmlText $fMonoidHtml $fShowHtml$fEqHtml $fOrdHtmlFromGValfromGValEitherfromGValConsPairToGValtoGValFunctionasList asDictItemsasLookupasHtmlasText asBooleanasNumber asFunctionlengthisNullasJSON marshalGVal marshalGValExmarshalFunction asHashMap matchFuncArgs dayToDict timeToDictlocalTimeToDicttimeZoneToDicttimeLocaleToDictzonedTimeToDictscientificToText rawJSONToGVal fromFunctiondict orderedDict~>gcons~:listisListisDict lookupIndexlookupIndexMay lookupKey lookupLooselookupLooseDef~!keystoNumbertoInttoIntDeftoInt0 toBoolean toFunctionpicoToScientificscientificToPico fromGValMpairwisepackPair unpackPair$fFromGValmTimeLocale$fFromGValmTimeZone$fFromGValmZonedTime$fFromGValmLocalTime$fFromGValmTimeOfDay$fFromGValmDay$fFromGValm(,,,)$fFromGValm(,,)$fFromGValm(,) $fFromGValm[] $fFromGValm()$fFromGValmValue$fFromGValmBool$fFromGValmMaybe$fFromGValmGVal$fFromGValmText$fFromGValmScientific$fFromGValmInt$fToGValmValue $fToGValmHtml $fToGValmText$fToGValmText0 $fToGValmChar$fIsStringGVal $fToGValmBool$fToGValm(,,,) $fToGValm(,,) $fToGValm(,)$fToGValmZonedTime$fToGValmTimeLocale$fToGValmTimeZone$fToGValmLocalTime$fToGValmTimeOfDay $fToGValmDay$fToGValmScientific$fToGValmInteger $fToGValmInt$fToGValmHashMap $fToGValm[]$fToGValmMaybe $fToGValm() $fToGValmGVal$fPrintfArgGVal $fToHtmlGVal $fShowGVal $fToJSONGVal $fDefaultGVal Annotated annotation ExpressionStringLiteralENumberLiteralE BoolLiteralE NullLiteralEVarEListEObjectE MemberLookupECallELambdaETernaryEDoE CatchBlockCatch catchWhatcatchCaptureAs catchBody StatementMultiSScopedSIndentSLiteralSInterpolationS ExpressionSIfSSwitchSForSSetVarS DefMacroS BlockRefSPreprocessedIncludeSNullS TryCatchSBlock blockBodyMacro macroArgs macroBodyTemplate templateBodytemplateBlockstemplateParentVarNamestmtAnnotationexprAnnotation$fAnnotatedTemplate$fAnnotatedMacro$fAnnotatedBlock$fAnnotatedStatement$fAnnotatedExpression$fShowExpression$fFunctorExpression$fShowStatement$fFunctorStatement$fShowCatchBlock$fFunctorCatchBlock $fShowMacro$fFunctorMacro$fShowTemplate$fFunctorTemplate $fShowBlock$fFunctorBlock ParserOptionspoIncludeResolver poSourceNamepoKeepTrailingNewlinepoLStripBlocks poTrimBlocks ParserErrorpeErrorMessagepeSourcePositionIncludeResolverSourceformatParserErrorparseGingerFile parseGingerparseGingerFile' parseGinger'mkParserOptions$fExceptionParserError$fToGValmSourcePos$fShowParserError$fGenericParserErrorRun GingerContext hoistContext easyContext makeContextM'makeContextExM' makeContext' makeContext makeContextMmakeContextHtmlmakeContextHtmlMmakeContextHtmlExMmakeContextTextmakeContextTextMmakeContextTextExM hoistNewlines hoistRunStateliftRunliftRun2hoistRun unaryFuncignoreArgNamesvariadicNumericFuncunaryNumericFuncvariadicStringFunc extractArgs extractArgsT extractArgsLextractArgsDefLinjectDefaultswithLocalStatewithLocalScope withEncodersetVargetVar clearCapture appendCapture fetchCapture easyRenderM easyRender runGinger runGingerT Optimizableoptimize$fToGValmCollected$fMonoidPurity$fOptimizableExpression$fOptimizableMacro$fOptimizableBlock$fOptimizableStatement$fOptimizableTemplate $fShowPurity $fEqPurity $fEnumPurity $fReadPurity $fOrdPurity$fBoundedPurity$fMonoidCollectedhtmlEncodeChar#text-1.2.2.2-KC7dWoG09dA1F6jKj5GSqhData.Text.InternalTextunHtmlbaseGHC.BaseMonadghc-prim GHC.TypesTrueNothingFalse3unordered-containers-0.2.8.0-9vyhLlLaqmyDfOnbawvdcQData.HashMap.BaseHashMapGHC.ShowShow)scientific-0.3.5.2-BSSeiSyGGnqCKIzD2RyZIKData.Scientific ScientificIntJust Data.StringIsStringfromParsecErrorParser ParseStatepsBlocks psStripIndent defParseStateignoreifFlagwhenFlag unlessFlag getResolverincludeincludeTemplatereduceStatements templatePderivedTemplateP baseTemplatePisNullS statementsPscriptStatementsPscriptStatementBlockP statementPscriptStatementPinterpolationStmtPscriptEchoStmtP literalStmtP literalCharPliteralNewlineP endOfLiteralP commentStmtPscriptCommentPspacesOrCommentscriptExprStmtPendl scriptStmtPifStmtP elseBranchP elifBranchP scriptIfStmtP scriptElseP scriptElifP tryCatchStmtP catchBranchPsuchThat catchHeaderP catchWhatP catchCapturePfinallyBranchP switchStmtP switchCasePswitchDefaultPscriptSwitchStmtPscriptSwitchCasePscriptSwitchDefaultPsetStmtP setStmtInnerPscriptSetStmtP defineBlock blockStmtPblockP macroStmtPscriptMacroStmtP macroHeadP callStmtP callHeadP scopeStmtP indentStmtP indentHeadPscriptScopeStmtPforStmtPscriptForStmtPincludePscriptIncludePforHeadP forIteratorPforIndexedIteratorPforSimpleIteratorP forHeadInP forHeadAsP fancyTagP simpleTagPopenInterpolationPcloseInterpolationP openCommentP closeCommentPopenTagP closeTagPopenPopenWPopenFWPopenNWPclosePcloseWPcloseFWPcloseNWP expressionP lambdaExprPoperativeExprP ternaryExprP cTernaryTailPpyTernaryTailP booleanExprPcomparativeExprP additiveExprPmultiplicativeExprP postfixExprPpostfixP dotPostfixP arrayAccessP funcCallPfuncArgP namedFuncArgPpositionalFuncArgPfilterP atomicExprPparenthesizedExprPdoExprP listExprP objectExprPexpressionPairPgroupPbracedPvarExprP identifierP identCharPstringLiteralExprPstringLiteralP stringCharPnumberLiteralExprPnumberLiteralP followedBybeforekeyword RuntimeErrorUndefinedBlockError TypeError IndexErrorNewlinesContextEncodabletransformers-0.5.2.0Control.Monad.Trans.Writer.LazyWriter reNewlineRunState withSourcePos$fContextEncodableHtml$fContextEncodableTextArgumentsErrorEvalParseErrorNotAFunctionErrorRuntimeErrorAtrsScope rsCapturersCurrentTemplatersCurrentBlockName rsIndentation rsAtLineStartrsCurrentSourcePos splitLines joinLines stripIndentendsWithNewlineencodenewlines contextLookup contextWrite contextWarn contextEncodecontextNewlinescontextWriteEncoded easyContextEx liftLookup textNewlines htmlNewlinesruntimeErrorWhatruntimeErrorMessageruntimeErrorWhereruntimeErrorToGValruntimeErrorToGValRawrteGValwarn warnFromMaybe setSourcePos getSourcePos throwHere$fToGValmRuntimeError$fDefaultRuntimeErrortshow gfnRawHtml gfnUrlEncode gfnDefault gfnEscapegfnAnygfnAll gfnEquals gfnNEquals gfnContains looseEqualsgfnLess gfnGreater gfnLessEqualsgfnGreaterEqualslessgreaterlessEq greaterEq differenceratiointRatiomodulo capitalize gfnCentergfnSlice gfnReplacegfnMapgfnSortonFstlistToIndexedDictcentergfnFileSizeFormatformatFileSize gfnPrintf gvalToDategvalDictToDategvalListToDategvalAutoParseDategvalToTZparseTZ gfnDateFormat getTimeLocale gfnFilterprintfG gfnDictsortgfnJSON baseTemplate runTemplate withTemplate withBlockName runStatement macroToGVal runExpressionecho defaultScope lookupBlock runStatement'runExpression'indented pushIndent popIndentincreaseIndentdecreaseIndent defRunStategfnThrowgfnEval CollectedPurityPureImpureoptimizeTemplateoptimizeStatement optimizeBlock optimizeMacrooptimizeStatementList cullNulls mergeLiteralsbothPurepureExpression pureFunctionpureFunctionNamesoptimizeExpressionpreEvalExpressiongvalToExpressionexpandConstExpressionsoptimizeSubexpressionsisConstExpressioncompileTimeEvalcollectedToGValrunCT ctContextctLookupctEncode