:N      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                 !"#$%&'()*+,-./0123456 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M None0I%N OPQR STUV  N  OPQR STUV72012 Michael Snoyman <michael@snoyman.com>, Jeremy Shaw4BSD-style (see the LICENSE file in the distribution)%Michael Snoyman <michael@snoyman.com> experimentalportableNone 9;<=ADRT)*an RFC1766 / ISO 639-1 language code (eg, fr, en-GB, etc).*the *4 is used to provide translations for a message typesThe master\ argument exists so that it is possible to provide more than one set of translations for a message type. This is useful if a library provides a default set of translations, but the user of the library wants to provide a different set of translations.,,- is used to convert the value inside #{ } to WIThe primary purpose of this class is to allow the value in #{ } to be a X or W% rather than forcing it to always be W..,generate translations from translation filesThis function will: 6look in the supplied subdirectory for files ending in .msg/generate a type based on the constructors found create a * instance/create *# instance for an existing data-type0?create an additional set of translations for a type created by .Yused by . and / to generate a *! and possibly a message data type0'(Z[\]^_`abcdef)*+,-.%base name to use for translation type1subdirectory which contains the translation filesdefault translation language/master translation data type%existing type to add translations forpath to translation folderdefault language0master translation data type%existing type to add translations forpath to translation folderdefault languageYEgenerate a new datatype from the constructors found in the .msg files%string to append to constructor names!string to append to datatype namebase name of master datatype!base name of translation datatypepath to translation folder default langghdatatype constructorvariable namesijklmnopqrstuvwxy12345 '()*+,-./0 ./0*+,-'()#'(Z[\]^_`abcdef)*+,-./0Yghijklmnopqrstuvwxy12345None !"059:;IFA transformation applied to the final expression. Most often, this would be used to force the type of the expression to help make more meaningful error messages.RCoffeescript, TypeScript, and other languages compiles down to Javascript. Previously we waited until the very end, at the rendering stage to perform this compilation. Lets call is a post-conversion This had the advantage that all Haskell values were inserted first: for example a value could be inserted that Coffeescript would compile into Javascript. While that is perhaps a safer approach, the advantage is not used in practice: it was that way mainly for ease of implementation. The down-side is the template must be compiled down to Javascript during every request. If instead we do a pre-conversion to compile down to Javascript, we only need to perform the compilation once.The problem then is the insertion of Haskell values: we need a hole for them. This can be done with variables known to the language. During the pre-conversion we first modify all Haskell insertions So #{a} is change to shakespeare_var_a Then we can place the Haskell values in a function wrapper that exposes those variables: (function(shakespeare_var_a){ ... shakespeare_var_a ...}) TypeScript can compile that, and then we tack an application of the Haskell values onto the result: (#{a})6preEscapeIgnoreBalanced is used to not insert backtacks for variable already inside strings or backticks. coffeescript will happily ignore the interpolations, and backticks would not be treated as escaping in that context. preEscapeIgnoreLine was added to ignore comments (which in Coffeescript begin with a #)X&A parser with a user state of [String]z*run a parser with a user state of [String]{calls |* when there is stderr or exit code failure_jDetermine which identifiers are used by the given template, useful for creating systems like yesod devel.L}~6789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXzY{for error reportingZfor error reporting[\]^_`abcde-6789:;<=B>?@ACDEFGIHJKLMNOPQRSTUVWXYZ[\]^_`a-<=>?@ABCDEFRSTUVWJKLMNOPQGHIY\^`]_;6789:XZa['}~6789:;< =>?@ABCDEFGHIJKLMNOPQRSTUVWXzY{Z[\]^_`abcdeNone9;Icodegen is designed for generating Yesod code, including templates So it uses different interpolation characters that won't clash with templates.|codegen is designed for generating Yesod code, including templates So it uses different interpolation characters that won't clash with templates. You can use the normal text quasiquoters to generate code}Generates strict Text codegen is designed for generating Yesod code, including templates So it uses different interpolation characters that won't clash with templates.opqrstuvwxyz{|}~opqrstuvwxyz{|}~qoprsvyz{utxw|}~opqrstuvwxyz{|}~None  None9;IIA typeclass for types that can be interpolated in CoffeeScript templates.*Return type of template-reading functions.Newtype wrapper of .}render with route interpolation. If using this module standalone, apart from type-safe routes, a dummy renderer can be used: 5renderJavascriptUrl (\_ _ -> undefined) javascriptUrleWhen using Yesod, a renderer is generated for you, which can be accessed within the GHandler monad: .Encode a JSON  to a  Data.Text >, which can be embedded efficiently in a text-based protocol.6If you are going to immediately encode straight to a , it is more efficient to use encodeToBuilder instead.jDetermine which identifiers are used by the given template, useful for creating systems like yesod devel."None9;I!The Roy language compiles down to Javascript. We do this compilation once at compile time to avoid needing to do it during the request. We call this a preConversion because other shakespeare modules like Lucius use Haskell to compile during the request instead rather than a system call.Read inline, quasiquoted Roy.QRead in a Roy template file. This function reads the file once, at compile time.Read in a Roy template file. This impure function uses unsafePerformIO to re-read the file on every call, allowing for rapid iteration.None9;I(The TypeScript language compiles down to Javascript. We do this compilation once at compile time to avoid needing to do it during the request. We call this a preConversion because other shakespeare modules like Lucius use Haskell to compile during the request instead rather than a system call. Identical to ' but uses jsx when compiling TypeScript#Read inline, quasiquoted TypeScript,Read inline, quasiquoted TypeScript with jsxXRead in a TypeScript template file. This function reads the file once, at compile time.aRead in a TypeScript template file with jsx. This function reads the file once, at compile time.Read in a TypeScript template file. This impure function uses unsafePerformIO to re-read the file on every call, allowing for rapid iteration.Read in a TypeScript with jsx template file. This impure function uses unsafePerformIO to re-read the file on every call, allowing for rapid iteration.None None%&9;CDIMRjDetermine which identifiers are used by the given template, useful for creating systems like yesod devel.O&perform the indent-to-brace conversion&perform the indent-to-brace conversioni2b?have whitespace? indentationE4None9;I !Not intended for direct use, see .Normalized value, 1 == 100%.!Not intended for direct use, see .Units used for text formatting. Normalized value in centimeters.Absolute size units.*Create a CSS size, e.g. $(mkSize "100px").2Absolute size unit convertion rate to centimeters. Constructs #. Not intended for direct use, see . Constructs #. Not intended for direct use, see ..Converts number and unit suffix to CSS format.+           None %&9:;IT,renderCss ([lucius|foo{bar:baz}|] undefined)"foo{bar:baz}"Looks for an & at the beginning of a selector and, if present, indicates that we should not have a leading space. Otherwise, we should have the leading space."Runtime Lucius with mixin support. Since 1.0.6Same as %, but output has no added whitespace. Since 1.0.3jDetermine which identifiers are used by the given template, useful for creating systems like yesod devel.$ !"#$%&'()*templateminify?scope+// !"#$%&'()*+None09:; never add newlines+add newlines between consecutive text linesadd newlines everywhere*Settings for parsing of a hamlet document.HThe value to replace a "!!!" with. Do not include the trailing newline.Should we add newlines to the output, making it more human-readable? Useful for client-side debugging but may alter browser page layout.WHow a tag should be closed. Use this to switch between HTML, XHTML or even XML output.BMapping from short names in "$doctype" statements to full doctype.,True == avoid newlines-bool: does it include params?;Defaults settings: HTML5 doctype and HTML-style empty tags..FWhen using conditional classes, it will often be a single class, e.g.: <div :isHome:.homepage>If isHome is False, we do not want any class attribute to be present. However, due to combining multiple classes together, the most obvious implementation would produce a class="". The purpose of this function is to work around that. It does so by checking if all the classes on this tag are optional. If so, it will only include the class attribute if at least one conditional is true.//This funny hack is to allow us to refer to the 0i function without requiring the user to have it in scope. See how this function is used in Text.Hamlet.b123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[,\]^_`abcd-efghijklmnopqrstuvw./xyz{|}0123546789<:;=>?@ABCbcd-efghijp/$123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[,\]^_`abcd-efghijklmnopqrstuvw./xyz{|} None09:;~ Fshould embeded template (via ^{..}) be plain Html or actual templates?   ~  None9:;A function generating an 9 given a message translator and a URL rendering function.A function generating an  given a URL-rendering function.0Convert some value to a list of attribute pairs.G"Simple Hamlet" quasi-quoter. May only be used to generate expressions. Generated expressions have type . >>>  ( [0|<div>Hello, world!|]) <div>Hello, world!</div> Like , but produces XHTML.>Hamlet quasi-quoter. May only be used to generate expressions.Generated expression have type  url , for some url. data MyRoute = Home render :: & MyRoute render Home _ = "/home" >>>  ( ([:|<a href=@{Home}>Home|] render)) <a href="/home">Home</a>  Like , but produces XHTML.#YHamlet quasi-quoter with internationalization. May only be used to generate expressions. Generated expressions have type  msg url , for some msg and url. =data MyMsg = Hi | Bye data MyRoute = Home renderEnglish :: H MyMsg renderEnglish Hi = "hi" renderEnglish Bye = "bye" renderUrl :: ) MyRoute renderUrl Home _ = "/home" >>>  ( ([#J|@{Home} _{Hi} _{Bye}|] renderEnglish renderUrl)) <div>/home hi bye <div>  EQuasiquoter that follows XHTML serialization rules and supports i18n.)Like (w, but the external file is parsed at runtime. Allows for more rapid development, but should not be used in production.*Like .w, but the external file is parsed at runtime. Allows for more rapid development, but should not be used in production.+Like (, but produces XHTML.-Like ,, but produces XHTML./Checks for truth in the left value in each pair in the first argument. If a true exists, then the corresponding right action is performed. Only the first is performed. In there are no true values, then the second argument is performed, if supplied.0vRuns the second argument with the value in the first, if available. Otherwise, runs the third argument, if available.Z   !"#$%&'()*+,-./0123457   !"#$%&'()*+,-./07,-() +#.*%'  "$/0!&D   !"#$%&'()*+,-./012345 None%&9;C6.Data which can be passed to a Hamlet template.8KA piece of data that can be embedded and passed to a Hamlet template (via <).This supplies an  instance, so with OverloadedStringsC it will support literal strings, which are converted to HTML via . For other datatypes, use 7.9A parsed Hamlet template. See : and ;.:]Parse an in-memory Hamlet template. This operation may fail if the template is not parsable.;Same as :k, but reads from a file. The file is assumed to be UTF-8 encoded (same assumption as compile-time Hamlet).<2Render a runtime Hamlet template, together with a # of variables to pass in, into an X value. This can fail if the template references a variable that is not present in the Map.6789:;<=>?@ABC 6789:;< 9867:;<6789:;<=>?@ABC None9;ID&Read inline, quasiquoted CoffeeScript.EZRead in a CoffeeScript template file. This function reads the file once, at compile time.FRead in a CoffeeScript template file. This impure function uses unsafePerformIO to re-read the file on every call, allowing for rapid iteration.GDeprecated synonym for FDEFGDEFGDEFGDEFG None9;ILjDetermine which identifiers are used by the given template, useful for creating systems like yesod devel.M#Create a mixin with Cassius syntax. Since 2.0.3HIJKLM'HIJKLM'HIJKMLHIJKLM !"#$%&''()*+,-./0123456789:;<=>?@ABBCDEFGHIJKLMNOPQRSTUVVWXYZ[\]^_`abccdefghijjklmnopqrstuvwxyz{|}~                                 !"#$%&'()*+,-./0123456789:;<=>?@ A B  C D E F G H I J K L M N O P Q R S T U V WXYZ[\]^_`abcdefghijkklmnoopqrstuvwxyz{|}~,dha&h                  ! "   # $ % & ' ()*+d,-../0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZh[\]^_`abcdefghijklmnopqrs t u v wdxyz{||}~UPQRSTxd   C    )shakespeare-2.0.13-6PvlGpyi4AgGWSxatfy7Ct Text.HamletText.Shakespeare.BaseText.Shakespeare.I18NText.ShakespeareText.Shakespeare.Text Text.JuliusText.RoyText.TypeScript Text.LuciusText.Hamlet.RTText.Hamlet.Runtime Text.Coffee Text.CassiusText.MkSizeTypeYesod.Core.HandlergetUrlRenderParamsL ByteStringText.IndentToBraceText.Internal.CssText.Internal.CssCommonText.Hamlet.ParseText.Blaze.Html.Renderer renderHtmlText.Blaze.Html.Renderer.String)blaze-html-0.9.0.1-4eJGk0sxoUAAbYpLi6kZJzText.Blaze.HtmlHtmlDerefDerefModulesIdent DerefIdent DerefIntegral DerefRational DerefString DerefBranch DerefList DerefTupleScopeIdent parseDeref derefToExp flattenDeref parseHashparseVarparseAtparseUrlparseVarStringparseUrlStringparseIntString parseCaretparseInt parseUnder readUtf8File $fLiftDeref $fLiftIdent $fShowIdent $fEqIdent $fReadIdent $fDataIdent $fOrdIdent $fShowDeref $fEqDeref $fReadDeref $fDataDeref $fOrdDeref SomeMessageLang RenderMessage renderMessage ToMessage toMessage mkMessage mkMessageFormkMessageVariant $fRenderMessagemasterSomeMessage$fIsStringSomeMessage$fRenderMessagemasterText $fToMessage[]$fToMessageTextVarTypeVTPlainVTUrl VTUrlParamVTMixin RenderUrlShakespeareSettingsvarCharurlCharintChar toBuilderwrapunwrapjustVarInterpolation preConversionmodifyFinalValue PreConversion ReadProcessId WrapInsertionwrapInsertionIndentwrapInsertionStartBeginwrapInsertionSeparatorwrapInsertionStartClosewrapInsertionEndwrapInsertionAddParens PreConvert preConvertpreEscapeIgnoreBalancedpreEscapeIgnoreLine wrapInsertionParserdefaultShakespeareSettings preFilterpack' shakespeareshakespeareFromStringshakespeareFileshakespeareUsedIdentifiersshakespeareFileReloadshakespeareRuntime$fLiftShakespeareSettings$fLiftPreConversion$fLiftWrapInsertion$fLiftPreConvert $fShowContent $fEqContent $fShowVarType $fEqVarType $fOrdVarType $fEnumVarType$fBoundedVarType $fDataVarType$fGenericVarTypeToTexttoTextTextUrl renderTextUrlstextltsttextlbtsbttextFile textFileDebugtextFileReloadcodegen codegenStcodegenFileReload codegenFile $fToTextInt $fToTextInt64 $fToTextInt32 $fToTextText $fToTextText0 $fToText[]$fToTextBuilderRawJSrawJS RawJavascript ToJavascript toJavascript JavascriptUrl Javascript unJavascriptrenderJavascriptrenderJavascriptUrlasJavascriptUrljavascriptSettingsjsjuliusjsFile juliusFile jsFileReloadjuliusFileReloadjuliusFileDebug jsFileDebugjuliusUsedIdentifiers $fRawJSBool$fRawJSBuilder $fRawJSText $fRawJSText0 $fRawJS[]$fToJavascriptRawJavascript$fToJavascriptValue$fToJavascriptBool$fMonoidJavascriptroyroyFile royFileReloadtsctscJSXtypeScriptFiletypeScriptJSXFiletypeScriptFileReloadtypeScriptJSXFileReloadToCsstoCssCssMixinCssUrl renderCssPercentageSizepercentageSizeValue AbsoluteSizeabsoluteSizeUnitabsoluteSizeValue AbsoluteUnit CentimeterInch MillimeterPicaPointColor renderCssUrlcolorRed colorBlackmkSize absoluteSizepercentageSizeEmSizeExSize PixelSizeRTValueRTVRawRTVMixinlucius luciusFileluciusFileDebugluciusFileReloadparseTopLevels luciusRT'luciusRT luciusRTMixinluciusRTMinifiedluciusUsedIdentifiers luciusMixin CloseStyleNoClose CloseInside CloseSeparate NewlineStyle NoNewlines NewlinesTextAlwaysNewlinesDefaultNewlineStyleHamletSettings hamletDoctypehamletNewlineshamletCloseStylehamletDoctypeNamesdefaultHamletSettingsxhtmlHamletSettingsHamletExceptionHamletParseExceptionHamletUnsupportedDocExceptionHamletRenderExceptionHamletRT SimpleDocSDRawSDVarSDUrl SDTemplateSDForallSDMaybeSDCond HamletDataHDHtmlHDUrl HDUrlParams HDTemplateHDBoolHDMaybeHDList HamletMap parseHamletRTrenderHamletRTrenderHamletRT'$fExceptionHamletException$fShowHamletExceptionEnv urlRender msgRender HamletRules hrFromHtml hrWithEnvhrEmbed HtmlUrlI18nHtmlUrl TranslateRender ToAttributes toAttributes attrsToHtmlshamletxshamlet htmlRuleshamletxhamlet asHtmlUrl hamletRulesihamlet ihamletRuleshamletWithSettingshamletFromStringhamletFileWithSettings hamletFilehamletFileReloadihamletFileReload xhamletFile shamletFile xshamletFile ihamletFilecondHmaybeH $fShowVarExp$fToAttributes[]$fToAttributes[]0$fToAttributes(,)$fToAttributes(,)0 ToHamletData toHamletDataHamletTemplateparseHamletTemplatereadHamletTemplateFilerenderHamletTemplate$fToHamletDataBool$fToHamletDataMarkupM$fToHamletDataText$fToHamletDataMaybe$fToHamletData[]$fToHamletDataHamletData$fIsStringHamletDatacoffee coffeeFilecoffeeFileReloadcoffeeFileDebugcassius cassiusFilecassiusFileDebugcassiusFileReloadcassiusUsedIdentifiers cassiusMixin UserParser derefParensderefCurlyBrackets derefList derefTupleread'expType curlyBracketsparseInterpolatedString#text-1.2.2.1-9Yh8rJoh8fO2JMLWffT3QsData.Text.InternalTextbaseGHC.BaseStringmkMessageCommonContentVarRawDefconstrvarscontentSDefsconstrsvarsscontent toClausesmkBody sToClause defClausetoConvarNamecheckDeftoSDefstoSDefloadLang loadLangDir loadLangFileparseDefcompress parseContent notStrict instanceDparsereadProcessErrorGHC.ErrerrorMTimeVarExpEPlainEUrl EUrlParamEMixinContents ContentRaw ContentVar ContentUrlContentUrlParam ContentMix ShakespeareQueryParameters readFileQ readFileUtf8 eShowErrorscontentFromString parseContentscontentsToShakespearegetVars reloadMapReflookupReloadMapinsertReloadMap nothingErrorcodegenSettingssettingsdropBar mkSizeTypedataDecshowInstanceDecnumInstanceDecfractionalInstanceDectoCssInstanceDec instanceType binaryFunDec unariFunDec1 unariFunDec2Data.Text.Internal.BuilderBuilderencodeToTextBuilder$aeson-1.2.0.0-EbPrqFF8uEn6JTr1dCEeDTData.Aeson.Types.InternalValuestringfromScientific roySettingstypeScriptSettingstypeScriptJSXSettingsNestBlankLine lineIndent lineContenti2b stripCommentsisBlankaddClosingCounttoLnesttell'unnestcssUsedIdentifiersCDDataCDPlainCDUrl CDUrlParamCDMixin ContentMixin CssWhitespaceCssNoWhitespaceAttrattrKeyattrValTopLevelTopBlock TopAtBlock TopAtDeclTopVar mixinAttrs mixinBlocksBlock blockSelector blockAttrs blockBlocks blockMixinsMixinsStrHasLeadingSpace ChildBlocksSelector UnresolvedResolvedDListpackfromText cssFileDebugcombineSelectors blockRuntimecontentToBuilderRT cssRuntimevtToExplookupDcompressTopLevel compressBlock blockToMixin blockToCssselectorToBuildercontentsToBuildercontentToBuildertopLevelsToCassiusblocksToCassius renderBlock liftBuilder $fLiftBlock $fLiftBlock0 $fLiftContent $fLiftAttr $fLiftAttr0 $fLiftMixin $fToCssText $fToCssText0 $fToCss[] $fMonoidMixinabsoluteUnitRateshowSize$fToCssPercentageSize$fFractionalPercentageSize$fNumPercentageSize$fShowPercentageSize$fToCssAbsoluteSize$fFractionalAbsoluteSize$fNumAbsoluteSize$fOrdAbsoluteSize$fEqAbsoluteSize$fShowAbsoluteSize $fToCssColor $fToCssEmSize $fToCssExSize$fToCssPixelSize detectAmp PairBlockPBAttrPBBlockPBMixinluciusFromString whiteSpace whiteSpace1 parseBlock partitionPBs parseSelectortrimparsePairsBlocks parsePairisHexatMost parseCommentstringCIluciusRTInternalluciusMixinFromString LineContenttestIncludeClazzesspecialOrIdent Data.FoldableorModule DataConstr DCQualified DCUnqualifiedBindingBindVarBindAs BindConstr BindTupleBindList BindRecordDoc DocForallDocWithDocCondDocMaybeDocCase DocContent ContentRuleInQuotes NotInQuotesNotInQuotesAttr InContentTagPieceTagNameTagIdentTagClass TagAttrib TagAttribs LineForallLineIf LineElseIfLineElseLineWith LineMaybe LineNothingLineCaseLineOfLineTag _lineTagName _lineAttr _lineContent _lineClasses _lineAttrs_lineNoNewline ContentEmbed ContentMsg ContentAttrsResultErrorOk parseLines parseLine nestLines nestToDoc compressDocparseDoc attrToContent htmlEmptyTagshtmlCloseStylexhtmlCloseStyle parseConds doctypeNames spaceTabs$fLiftHamletSettings $fLift(->)$fLiftNewlineStyle$fApplicativeResult$fFunctorResult $fMonadResult UrlRendererfashowName flattenDeref' System.IOputStrLnixhamlet RuntimeVarsHamletRuntimeRuleshrrI18n EMixinI18nEMsgVTMsgVTAttrs docsToExpunIdentbindingPattern mkConNameconToStrbindWildFieldsrecordToFieldNamesdocToExp contentToExp docFromStringstrToExphamletUsedIdentifiershamletFileReloadWithSettings hamletRuntimehamletRuntimeMsgruntimeContentToHtml Data.StringIsStringtoHtmlcontainers-0.5.7.1 Data.Map.BaseMap unHamletDataVoidabsurdcoffeeSettingsi2bMixin