úÎ!ō|Đ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ ˆ ‰ Š ‹ Œ  Ž  ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻ6Polysemy effect for creating a list of named documents(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&'-.456>HSUVXg  knit-haskell-Data type to hold one named document of type a.  knit-haskell+GADT to represent storing a named document.  knit-haskellAction of the  ! Effect. Store a named document.Đ knit-haskell Intepret  " in @Polysemy.Writer [NamedDoc a]'  knit-haskell Interpret   (via ), producing a list of  NamedDoc a  knit-haskellMap over the doc part of Functor m => m [NamedDoc a] with an a->b resulting in m [NamedDoc b]  knit-haskellMap over the doc part of Monad m => m [NamedDoc a] with a -> m b resulting in m [NamedDoc b] knit-haskell‚Combine the interpretation and mapping step. Commonly used to "run" the effect and map the results to your deisred output format. knit-haskellŒCombine the interpretation and effectful mapping step. Commonly used to "run" the effect and map the results to your deisred output format.    :Polysemy writer effects for creating Lucid/Blaze documents(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone &'-.>HUVX7[ knit-haskellType-Alias for the  effect (multi-document Writer) specialized to Blaze docs. To be used in an app that produces multiple html outputs, built up from Blaze bits. knit-haskellType-Alias for the  effect (multi-document Writer), specialized to Lucid docs. To be used in an app that produces multiple html outputs, built up from Lucid bits. knit-haskell.Type-Alias for a single Blaze document writer. knit-haskell.Type-Alias for a single Lucid document writer. knit-haskell3Add a Lucid html fragment to the current Lucid doc. knit-haskell3Add a Blaze html fragment to the current Blaze doc. knit-haskellôTake the current Lucid HTML in the writer and add it to the set of named docs with the given name. NB: Only use this function for making sets of documents built exclusively from Lucid. Otherwise use the more general Pandoc infrastructure in . knit-haskellōtake the current Blaze HTML in the writer and add it to the set of named docs with the given name NB: Only use this function for making sets of documents built exclusively from Blaze. Otherwise use the more general Pandoc infrastructure in . knit-haskellpInterpret the LucidDocs effect (via Writer), producing a list of named Lucid docs, suitable for writing to disk. knit-haskellRInterpret the BlazeDocs effect (via Writer), producing a list of named Blaze docs. knit-haskell<Interprest the Lucid effect (via Writer), producing a Lucid Html () from the currently written doc knit-haskell3Interpret the Lucid effect (via Writer), producing Text from the currently written doc knit-haskell;Interpret the Blaze effect (via Writer), producing a Blaze Html from the currently written doc.  knit-haskell3Interpret the Blaze effect (via Writer), producing Text from the currently written doc.  Polysemy logging effect(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&',-./=>?@AHSUVX_k\O! knit-haskellConstraint helper for LogEntry type with prefixes" knit-haskell+Constraint helper for logging with prefixesŠ knit-haskell;Monad-logger style wrapper to add prefixes to log messages.# knit-haskell Prefix Effect$ knit-haskellThe Logger effect& knit-haskell5A basic LogEntry with a severity and a (Text) message* knit-haskell,Severity of message. Based on monad-logger.Ŧ knit-haskell Map between  LogSeverity and monad-logger severity.Ž knit-haskellConvert LogEntry to monad-logger style./ knit-haskell LogSeverity) list used in order to output everything.0 knit-haskell* list used to output all but +. +[ messages are sometimes useful for debugging but can get noisy depending on how you use it.1 knit-haskell]Add one log entry of arbitrary type. If you want to log with another type besides @LogEntry.2 knit-haskellAdd one log-entry of the LogEntry type.­ knit-haskell6Helper function for logging with monad-logger handler.Ū knit-haskellAdd one level of prefix.Ŋ knit-haskellRemove last prefix.° knit-haskellGet current prefix 3 knit-haskell#Add a prefix for the block of code.ą knit-haskellInterpret LogPrefix in Polysemy.State [T.Text].ē knit-haskellInterpret the  LogPrefix effect in State and run that.ģ knit-haskell6Render a prefixed log message with the pretty-printer.ī knit-haskellUse  PrefixLogC Effect to re-interpret all the logged messages to WithPrefix form.ĩ knit-haskellGiven a handler for  WithPrefix a in the remaining effects (IO, e.g.,), run the Logger and Prefix effects and handle all the logging messages via that handler.ķ knit-haskell#Add a severity filter to a handler.· knit-haskellSimple handler, uses a function from message to Text and then outputs all messages in IO. Can be used as base for any other handler that gives Text.ļ knit-haskellPreferred handler for LogEntry type with prefixes.4 knit-haskell~Run the Logger and PrefixLog effects using the preferred handler and filter output in any Polysemy monad with IO in the union.đ knit-haskell0Represents adding a prefix to the logging outputš knit-haskell*Represents removing one level of prefixingŧ knit-haskell(Represents retrieving the current prefix!"#$%&')(*.-,+/01234*.-,+&')($%#1234/0"!Polysemy PandocMonad effect(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&',-.4=>?@AHPSUVX_kpē : knit-haskell Pandoc Effect; knit-haskell6Constraint helper for using this set of effects in IO.< knit-haskell6Constraint helper for using this set of effects in IO.ž knit-haskell,Map pandoc severities to our logging system.― knit-haskell8Handle the logging with the knit-haskell logging effect.O knit-haskell"Interpret the Pandoc effect using IO, Knit.Effect.Logger and PolySemy.Error PandocError P knit-haskell`Interpret the Pandoc effect in another monad (which must satisy the PandocMonad constraint) and Knit.Effect.LoggerQ knit-haskell•Run the Pandoc effects, and log messages with the given severity, over IO. If there is a Pandoc error, you will get a Left in the resulting Either.ū knit-haskellStateful version of the Pandoc reportZ function, outputting relevant log messages and adding them to the log kept in the state.ŋ knit-haskell+Utility function to lift IO errors into SemR knit-haskellESplit off the error piece. We will handle directly with the polysemy Error effectS knit-haskellUPandocMonad instance so that pandoc functions can be run in the polysemy union effect:;<=>?@ABCDEFGHIJKLMNOPQ:<;=>?@ABCDEFGHIJKLMNPOQPolysemy writer-like effect(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&'-.1>HSUVX_kžfT knit-haskellType-alias for use with the Docs effect.U knit-haskellAPandoc output effect, take given doc and produce formatted outputV knit-haskell1Pandoc writer, add any read format to current docX knit-haskellĸwADT to allow inputs to request support, if necessary or possible, in the output format. E.g., Latex output in Html needs MathJax. But Latex needs to nothing to output in Latex. Vega-lite needs some script headers to output in Html and can't be output in other formats. For now, we support all the things we can in any output format so this just results in a runtime test.Y knit-haskellSupported only for Html output.Z knit-haskell8Supported in Html output (via MathJax) and Latex output.[ knit-haskell,Supported formats for writing current Pandocc knit-haskell.Supported formats for adding to current Pandocj knit-haskell8Add a piece of a Pandoc readable type to the current dock knit-haskell6Add a requirement that the output format must satisfy.l knit-haskell#Write given doc in requested formatm knit-haskell*Convert a to Pandoc with the given optionsn knit-haskell‡Convert Pandoc to requested format with the given options. | Throw a PandocError if the output format is unsupported given the inputs.Ā knit-haskellRe-interpret ToPandoc in Writero knit-haskellDRun ToPandoc by interpreting in Writer and then running that Writer.Á knit-haskell3Add a new named Pandoc to a Pandoc Docs collection.p knit-haskellkAdd the Pandoc stored in the writer-style ToPandoc effect to the named docs collection with the given name. knit-haskellNGiven a write format and options, convert the NamedDoc to the requested formatq knit-haskellrGiven a write format and options, convert a list of named Pandocs to a list of named docs in the requested formatr knit-haskelljGiven a write format and options, run the writer-style ToPandoc effect and produce a doc of requested typeà knit-haskelladd to current docÄ knit-haskellrequire specific supportÁ knit-haskellname for document knit-haskell,document and union of all input requirementsp knit-haskellname of document knit-haskellformat for Pandoc output knit-haskelloptions for the Pandoc Writer knit-haskell+named Pandoc with its union of requirements knit-haskell1document in output format (in the effects monad).q knit-haskellformat for Pandoc output knit-haskelloptions for the Pandoc Writer knit-haskell4effects stack to be (partially) run to get documents knit-haskell7documents in requested format, within the effects monadr knit-haskellformat for Pandoc output knit-haskelloptions for the Pandoc Writer knit-haskell3effects stack to be (partially) run to get document knit-haskell6document in requested format, within the effects monad#TUVWXYZ[\]^_`abcdefghijklmnopqr#VUXYZWcdefghi[\]^_`abjklmnoTpqrPolysemy random-fu effect(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&'-.>HSUVX_kĻ,| knit-haskell Random Effect} knit-haskell-Convert a random-fu RVar to the Random Effect~ knit-haskell5Convert a random-fu Distribution to the Random Effect knit-haskell+Run in IO using default random-fu IO source€ knit-haskellRun using the given source knit-haskellRun in Å, using the given PureMT source stored in an IORef‚ knit-haskell=supply instance of MonadRandom for functions which require it|}~€|}~€CSupport functions for adding Html fragments into a Pandoc document.(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone  &'.>UVXŪ,ƒ knit-haskellBase Html reader options„ knit-haskell)Html reader options for complete document… knit-haskell&Add Strict Text Html to current Pandoc† knit-haskell$Add Lazy Text Html to current Pandocƒ„…†…†ƒ„ ?Support functions for adding Blaze Html fragments into a report(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&'>ą>‡ knit-haskellAdd Blaze Html ‡‡ ?Support functions for adding Lucid Html fragments into a report(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&'>ī4ˆ knit-haskellAdd Lucid Htmlˆˆ :Support functions for adding LaTeX fragments into a report(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&'>·‰ knit-haskell Add LaTeX‰‰ 6Functions to add Pandoc MarkDown fragments to a Pandoc(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone  &'.>UVXžlŠ knit-haskell#Base Pandoc MarkDown reader options‹ knit-haskell5Add a Pandoc MarkDown fragment with the given optionsŒ knit-haskell3Add a Pandoc MarkDown fragment with default optionsŠ‹ŒŠŒ‹ :Support functions for adding LaTeX fragments into a report(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone&'>ɋ knit-haskell<Add a table given a Colonnade representation producing text Ž knit-haskellAdd a  3https://hackage.haskell.org/package/blaze-colonnadeBlaze-Colonnade Html Table knit-haskellAdd a  3https://hackage.haskell.org/package/blaze-colonnadeBlaze-Colonnade Cell Table knit-haskellHow to encode data as columns knit-haskellcollection of dataŽ knit-haskellAttributes of  table/ Html element, currently unused by knit-haskell knit-haskellHow to encode data as columns knit-haskellcollection of data knit-haskellAttributes of  table/ Html element, currently unused by knit-haskell knit-haskellHow to encode data as columns knit-haskellcollection of dataŽŽ1Support functions for simple reports using Pandoc(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone  &'.>UVXÎŧ knit-haskellMAdd hvega (via html). Requires html since vega-lite renders using javascript.Æ knit-haskell=Build (Blaze) Html for hvega visualization with the given id-Support functions for simple reports in Blaze(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone XÕ}‘ knit-haskellConvert Latex to Blaze HtmlĮ knit-haskellAdd headers for using Tufte css“ knit-haskellPWrap given html in appropriate headers for the hvega and latex functions to work” knit-haskell,Add an hvega visualization with the given id• knit-haskell#Add the given Html as a new section‘’“”•“”•‘’freer-simple random effect(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone XÞŅ – knit-haskellConvert Latex to Lucid Html— knit-haskellConvert Latex to Lucid HtmlČ knit-haskellAdd headers for MathJaxÉ knit-haskell!Add headers to use vega-lite (v2)Ę knit-haskell!Add headers to use vega-lite (v3)Ë knit-haskellAdd headers to use Tufte css˜ knit-haskellT- | wrap given html in appropriate headers for the hvega and latex functions to work™ knit-haskell,add an hvega visualization with the given idš knit-haskell#add the given Html as a new section–—˜™š˜™š–—Noneãt knit-haskelloptional path to pandoc (https://pandoc.org/MANUAL.html#templatestemplatež knit-haskellvariable substitutions for the (https://pandoc.org/MANUAL.html#templatestemplateŸ knit-haskellchange default 5https://pandoc.org/MANUAL.html#general-writer-optionsoptions›œžŸ›œžŸOutput Pandoc as Html(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone  &'.>UVXô)  knit-haskell2Base Html writer options, with support for MathJaxĖ knit-haskell>Full writer options which use pandoc monad for template accessĄ knit-haskellConvert markDown to BlazeĒ knit-haskell‚Convert given Pandoc to Blaze Html. Incudes support for template and template variables and changes to the default writer optionsĢ knit-haskell·Convert current Pandoc document (from the ToPandoc effect) into a Blaze Html document. Incudes support for template and template variables and changes to the default writer options. Ī knit-haskelloptions for the mindoc templateĖ knit-haskellpath to template to include, Nothing for no template. knit-haskelltemplate Variable substitutionsĄ knit-haskell markDown TextĒ knit-haskell)Document and union of input requirements Ģ knit-haskell(Configuration info for the Pandoc writer knit-haskell"Effects stack to run to get Pandoc knit-haskell!Blaze Html (in remaining effects) ĄĒĢĪ ĒĢĪĄ;Re-export all the things required for pandoc-built reports.(c) Adam Conner-Sax 2019 BSD-3-Clauseadam_conner_sax@yahoo.com experimentalNone &',-.>HSUVXk 4Í knit-haskell7Add a single-doc writer to the front of the effect listÎ knit-haskell6Add a Multi-doc writer to the front of the effect listÏ knit-haskell0The exact stack we are interpreting when we knitĨ knit-haskellJConstraints required to knit a document using effects from a base monad m.Ķ knit-haskellĸCreate multiple HTML docs (as Text) from the named sets of pandoc fragments. In use, you may need a type-application to specify m. This allows use of any underlying monad to handle the Pandoc effects. NB: Resulting documents are *Lazy* Text, as produced by the Blaze render function.§ knit-haskellöCreate HTML Text from pandoc fragments In use, you may need a type-application to specify m. This allows use of any underlying monad to handle the Pandoc effects. NB: Resulting document is *Lazy* Text, as produced by the Blaze render function.Ļ knit-haskell_lift an action in a base monad into a Polysemy monad. This is just a renaming for convenience.Ð knit-haskellrun all knit-effects in KnitEffectStack mĶ knit-haskellouter logging prefix knit-haskellwhat to output in log knit-haskell(configuration for the Pandoc Html Writer§ knit-haskellouter logging prefix knit-haskellwhat to output in log knit-haskell(configuration for the Pandoc Html WriterÐ knit-haskellouter logging prefix knit-haskellwhat to output in logU!*.-,+/0234:;<=>?@ABCDEFGHIJKLMNOPQTVXYZ[\]^_`abcdefghip…†‡ˆ‰ŒŽ›œžŸĢĪĨͧĻ<§ĶĻĨŽŒ…†‡ˆ‰›œžŸĢĪTVXYZ[\]^_`abcdefghip!*.-,+/0234Ņ !"#$%%&'()*+,-./0123456789:;<=>?@ABCDDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒ Ģ Ī Ĩ Ķ § Ļ Đ Š ŦŽ­ŪŊ°ą­ŪŊ°ąēēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕŋÖŨØŲÚÛܰÝÞßāÝáâãäåæ+knit-haskell-0.2.0.0-DhPL9ZyiGFV6IDWpZet6LTKnit.Effect.LoggerKnit.Effect.PandocMonad Knit.ReportKnit.Effect.DocsKnit.Effect.HtmlKnit.Effect.PandocKnit.Effect.RandomFuKnit.Report.Input.HtmlKnit.Report.Input.Html.BlazeKnit.Report.Input.Html.LucidKnit.Report.Input.Latex)Knit.Report.Input.MarkDown.PandocMarkDown!Knit.Report.Input.Table.Colonnade%Knit.Report.Input.Visualization.HvegaKnit.Report.Other.BlazeKnit.Report.Other.LucidKnit.Report.OutputKnit.Report.Output.HtmlPolysemyWriter Knit.EffectsDocsPandoc+logging-effect-1.3.3-GWi459whhDOD26vGy33i4SControl.Monad.LogHandler#pandoc-2.7.2-9I86dLZ0XPNB8Q22hV9FH8Text.Pandoc.Error PandocError'polysemy-0.1.2.0-342dd8dxkSqE5Db2NQeRAGPolysemy.InternalSemPolysemy.Internal.UnionMemberPolysemy.Internal.LiftLiftNamedDocndNamendDocnewDoctoNamedDocList mapNamedDocs mapNamedDocsMtoNamedDocListWithtoNamedDocListWithM$fFunctorNamedDoc$fFoldableNamedDoc$fTraversableNamedDoc BlazeDocs LucidDocsBlazeLucidlucidblaze newLucidDoc newBlazeDoclucidToNamedTextblazeToNamedText lucidHtml lucidToText blazeHtml blazeToTextLogWithPrefixesLELogWithPrefixes PrefixLogLoggerLogLogEntryseveritymessage LogSeverity DiagnosticInfoWarningErrorlogAll nonDiagnosticloglogLE wrapPrefixfilteredLogEntriesToIO$fShowLogSeverity$fEqLogSeverity$fOrdLogSeverity$fEnumLogSeverity$fBoundedLogSeverityPandocEffectsIO PandocEffects lookupEnvgetCurrentTimegetCurrentTimeZone newStdGen newUniqueHashopenURL readFileLazyreadFileStrictglob fileExistsgetDataFileNamegetModificationTimegetCommonStateputCommonStategetsCommonStatemodifyCommonState logOutputtrace interpretInIOinterpretInPandocMonadrunIO$fMonadErrorPandocErrorSem$fPandocMonadSemPandocs FromPandocToPandocPandocWithRequirements Requirement VegaSupport LatexSupportPandocWriteFormat WriteDocX WriteMarkDownWriteCommonMarkWriteRST WriteLaTeX WriteHtml5WriteHtml5StringPandocReadFormatReadDocX ReadMarkDownReadCommonMarkReadRST ReadLaTeXReadHtmladdFromrequirewriteTotoPandoc fromPandocrunPandocWriter newPandocpandocsToNamed fromPandocE$fMonoidPandocWithRequirements!$fSemigroupPandocWithRequirements$fShowRequirement$fOrdRequirement$fEqRequirement$fBoundedRequirement$fEnumRequirement$fShowPandocWriteFormat$fShowPandocReadFormatRandom sampleRVar sampleDistrunRandomIOSimplerunRandomFromSourcerunRandomIOPureMT$fMonadRandomSemhtmlReaderOptionshtmlReaderOptionsWithHeaderaddStrictTextHtmladdLazyTextHtmladdBlazeaddLucidaddLatexmarkDownReaderOptionsaddMarkDownWithOptions addMarkDownaddColonnadeTextTableaddColonnadeHtmlTableaddColonnadeCellTableaddHvega latexToHtmllatex_makeReportHtmlplaceVisualizationplaceTextSectionPandocWriterConfig templateFP templateVarsoptionsFhtmlWriterOptionsmarkDownTextToBlazeFragmenttoBlazeDocumentpandocWriterToBlazeDocumentmindocOptionsFKnitBase knitHtmlsknitHtmlliftKnittoWriter WithPrefixlogSeverityToSeveritylogEntryToWithSeveritylogWithHandler addPrefix removePrefix getPrefix prefixInState runPrefixrenderWithPrefix logPrefixedlogAndHandlePrefixed filterLoglogToIOprefixedLogEntryToIO AddPrefix RemovePrefix GetPrefixpandocSeveritylogPandocMessagereport liftIOError newPandocPurenamedPandocFromAddFromRequireghc-prim GHC.TypesIO tufteSetup mathJaxScript vegaScripts2 vegaScripts3htmlFullDocWriterOptionsKnitEffectDocStackKnitEffectDocsStackKnitEffectStackconsumeKnitEffectStack