b      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg h i j k l m n o p q r s t u v w x y z { | } ~  Safe-Inferred   Brent Yorgey <byorgey@gmail.com>NoneEWordPress can render LaTeX, but expects it in a special non-standard  format ($ latex foo$). The wpTeXify function formats LaTeX code ? using this format so that it can be processed by WordPress.  Brent Yorgey <byorgey@gmail.com>NoneBGiven a block, if begins with a tag in square brackets, strip off A the tag and return a pair consisting of the tag and de-tagged  block. Otherwise, return Nothing and the unchanged block. ARun the given function on the attributes and source code of code D blocks with a tag matching the given tag (case insensitive). On  any other blocks (which don''t have a matching tag, or are not code $ blocks), run the other function.  Brent Yorgey <byorgey@gmail.com>None A GhciLine is a  GhciInput paired with its corresponding  GhciOutput. @An output from ghci is either a correct output, or an incorrect 8 (unexpected) output paired with the expected output. *An input to ghci consists of an expression/command, possibly # paired with an expected output. BInformation about a running process: stdin, stdout, stderr, and a  handle. )Evaluate an expression using an external ghci process. AStart an external ghci process, run a computation with access to % it, and finally stop the process. Poor man'8s check to see whether we have a literate Haskell file. "Stop a ghci process by passing it :q and waiting for it to exit. /There is nothing magic about the magic string. Given the path to the .lhs$ source and its representation as a  Pandoc document, formatInlineGhci finds any [ghci] blocks  in it, runs them through ghci , and formats the results as an  interactive ghci session. ALines beginning in the first column of the block are interpreted C as inputs. Lines indented by one or more space are interpreted  as expected outputs". Consecutive indented lines are C interpreted as one multi-line expected output, with a number of ? spaces removed from the beginning of each line equal to the = number of spaces at the start of the first indented line. <If the output for a given input is the same as the expected E output (or if no expected output is given), the result is typeset D normally. If the actual and expected outputs differ, the actual E output is typeset first in red, then the expected output in blue.      Brent Yorgey <byorgey@gmail.com>None %Four modes for highlighting Haskell. Do not highlight Haskell. Use highlighting-kate. !Use hscolour in conjunction with  an external CSS style sheet. $Use hscolour and inline the styles. AStyle preferences are specified as a list of mappings from class ' attributes to CSS style attributes. ?Use hscolour to syntax highlight some Haskell code. The first : argument indicates whether the code is literate Haskell. 6Prepend literate Haskell markers to some source code. <A default style that produces something that looks like the  source listings on Hackage. 0Read style preferences in from a file using the Read instance  for  StylePrefs2, or return the default style if the file name is  empty. Take a String# of HTML produced by hscolour, and "bake" styles @ into it by replacing class attributes with appropriate style  attributes. Replace <br/> tags with newlines.  Transform a  CodeBlock into a RawHtml block, where B the content contains marked up Haskell (possibly with literate J markers), or marked up non-Haskell, if highlighting of non-Haskell has  been selected. :Perform syntax highlighting on an entire Pandoc document.   Formatter Attributes of the CodeBlock Raw contents of the CodeBlock Maybe the formatted result     Brent Yorgey <byorgey@gmail.com>None4Configuration record (and command-line options) for BlogLiterately. Name of a style file Haskell highlighting mode Use highlighting-kate for  non-Haskell? !Format LaTeX for WordPress? "Indicate how to format math #%Automatically process ghci sessions? $Automatically upload images? %Categories for the post &Tags for the post 'Blog-specific identifier  (e.g. for blogging software  handling multiple blogs) (Name of profile to use. )Blog xmlrpc URL *Blog user name +2Blog password (omit to be interactively prompted) , Post title - File to post .Format of the file  (currently supported:  markdown, rst) /ID of a post to update 0 Create a "page" instead of a post 1Should the post be published? * (Otherwise it is uploaded as a draft.) 2Don't upload anything;  just output HTML to  stdout. 3%Extension arguments, for use e.g. by  custom transforms ](Command-line configuration for use with cmdargs. C !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]B !"#$%&'()*+,-./0123]C:=H<9F6D5A4G?E78@>B;IJKLMNOPQRSTUVWXYZ[\, !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\] Brent Yorgey <byorgey@gmail.com>None^&Transform a document by uploading any "local" images to the C server, and replacing their filenames with the URLs returned by E the server. Only upload any given image once (determined by file E name), even across runs: uploaded images and their associated URL 2 on the server is tracked in a special dotfile,  .BlogLiterately-uploaded-images. KRead the list of previously uploaded images and their associated URLs from  a special dotfile (namely, .BlogLiterately-uploaded-images). @Write out the list of uploaded images and their associated URLs ! to a special dotfile (namely, .BlogLiterately-uploaded-images). _Upload a file using the metaWeblog.newMediaObject XML-RPC method  call. `Prepare a file for upload. ^_`^_`^_`^_` Brent Yorgey <byorgey@gmail.com>NoneaAPrepare a post for uploading by creating something of the proper . form to be an argument to an XML-RPC call. b2Given a name and a list of values, create a named "array" field 0 suitable for inclusion in an XML-RPC struct. Get the URL for a given post. cEGiven a configuration and a formatted post, upload it to the server. a Post title  Post content List of categories  List of tags True = page, False = post bcabcabc abc Brent Yorgey <byorgey@gmail.com>NonedConvert the contents of a [BLOpts] block into an options record  and a list of parse errors. eRead a single line from a [BLOpts] block. fParse a single line from a [BLOpts] block. defdefdefdef  Brent Yorgey <byorgey@gmail.com>Noneg;A document transformation consists of two parts: an actual F transformation, expressed as a function over Pandoc documents, and E a condition specifying whether the transformation should actually  be applied. "The transformation itself takes a  configuration C as an argument. You may of course ignore it if you do not need 2 to know anything about the configuration. The --xtra (or -x) ; flag is also provided especially as a method of getting E information from the command-line to custom extensions. Arguments  passed via -x, on the command line are available from the I  field of the  configuration. ?The transformation is then specified as a stateful computation  over both a BlogLiterately options record, and a Pandoc . document. It may also have effects in the IO monad. % If you have a pure function of type BlogLiterately -> Pandoc  -> Pandoc, you can use the k function to create a  g.  If you have a function of type BlogLiterately -> Pandoc -> IO  Pandoc, you can use l. 5 Otherwise you can directly create something of type StateT # (BlogLiterately, Pandoc) IO (). AFor examples, see the implementations of the standard transforms  below. i/A document transformation, which can transform . both the document and the options and have 0 effects in the IO monad. The options record 2 can be transformed because the document itself 6 may contain information which affects the options. j3A condition under which to run the transformation. k1Construct a transformation from a pure function. l2Construct a transformation from a function in the IO monad. mRun a g (if its condition is met). nRun a pipeline of gs. o,Format embedded LaTeX for WordPress (if the wplatex flag is set). pFormat embedded ghci sessions (if the ghci flag is set). q3Upload embedded local images to the server (if the  uploadImages  flag is set). r,Perform syntax highlighting on code blocks. s<Center any images which occur in a paragraph by themselves. # Inline images are not affected. t@Potentially extract a title from the metadata block, and set it  in the options record. uExtract blocks tagged with [BLOpts] and use their contents as  options. ?Take a block and extract from it a list of parse errors and an 3 options record. If the blog is not tagged with [BLOpts] these  will just be empty. Delete any blocks tagged with [BLOpts]. v&Prompt the user for a password if the blog field is set but no  password has been provided. w<Read a user-supplied style file and add its contents to the  highlighting options. x1Load options from a profile if one is specified. @Load additional options from a profile specified in the options  record. yAThe standard set of transforms that are run by default (in order  from top to bottom):   u: extract options specified in [BLOpts] blocks in the file  x&: load the requested profile (if any)  v+: prompt the user for a password if needed  t/: extract the title from a special title block  o0: turn LaTeX into WordPress format if requested  p-: run and typeset ghci sessions if requested  q: upload images if requested  s1: center images occurring in their own paragraph  w-: load the requested highlighting style file  r: perform syntax highlighting z=Transform a complete input document string to an HTML output 2 string, given a list of transformation passes. {Turn CRLF pairs into a single LF. This is necessary since   is picky about line endings. ghijklmnopqrstuvwxyz{ghijklmnopqrstuvwxyz{yuxwvtopqrsghijklmnz{ghijklmnopqrstuvwxyz{  Brent Yorgey <byorgey@gmail.com>None|(The default BlogLiterately application. }Like |-, but with the ability to specify additional  gs which will be applied after the standard ones. ~Like |, but with the ability to replace the  standard g.s. Use this to implement custom interleaving C orders of the standard transforms and your own, to exclude some + or all of the standard transforms, etc. |}~|}~|}~|}~  Brent Yorgey <byorgey@gmail.com>None|  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcghijklmnopqrstuvwxyz{|}~  !"#$%&'())*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqr s s t u v w x y z { | } ~   BlogLiterately-0.6.3.1Text.BlogLiterately.LaTeXText.BlogLiterately.BlockText.BlogLiterately.GhciText.BlogLiterately.HighlightText.BlogLiterately.OptionsText.BlogLiterately.ImageText.BlogLiterately.Post!Text.BlogLiterately.Options.ParseText.BlogLiterately.TransformText.BlogLiterately.RunPaths_BlogLiteratelyText.BlogLiteratelywpTeXifyunTagonTag ProcessInfoghciEvalwithGhciProcess isLiteratestopGhcimagicextract'extractbreaksformatInlineGhci HsHighlight HsNoHighlightHsKate HsColourCSSHsColourInline StylePrefs_HsColourInlinecolourItlitifydefaultStylePrefs getStylePrefs bakeStyles replaceBreakscolouriseCodeBlockcolourisePandocBlogLiterately_style _hsHighlight_otherHighlight_wplatex_math_ghci _uploadImages _categories_tags_blogid_profile_blog_user _password_title_file_format_postid_page_publish _htmlOnly_xtrablogblogid categoriesfileformatghci hsHighlighthtmlOnlymathotherHighlightpagepasswordpostidprofilepublishstyletagstitle uploadImagesuserwplatexxtrastyle' hsHighlight'otherHighlight'wplatex'math'ghci' uploadImages'blogid'profile'blog'user' password'title'file'format'postid'page'publish' htmlOnly'blOptsuploadAllImagesuploadIt mkMediaObjectmkPostmkArraypostIt readBLOptions readBLOption parseBLOption Transform getTransformxfCond pureTransform ioTransform runTransform runTransforms wptexifyXFghciXFuploadImagesXF highlightXFcenterImagesXFtitleXF optionsXF passwordXFhighlightOptsXF profileXFstandardTransformsxformDocfixLineEndingsblogLiteratelyblogLiteratelyWithblogLiteratelyCustomcatchIOversionbindirlibdirdatadir libexecdir getBinDir getLibDir getDataDir getLibexecDirgetDataFileName lowercaseGhciLine GhciOutput GhciInput UnexpectedOKexprexpectedparseGhciInputs mkGhciInputunlines'stripunindentindentcolored coloredBlock ghciPromptformatGhciResultesc _HsColourCSS_HsKate_HsNoHighlight lcLanguages highlight$fMonoidBlogLiteratelyreadUploadedImageswriteUploadedImagesURLuploadedImagesFilereadMay getPostURL _ValueInt _ValueBool _ValueString _ValueDouble_ValueDateTime _ValueBase64 _ValueStruct _ValueArraystrparseStr parseBool parseStrList parseFieldextractOptionskillOptionBlocks loadProfilepandoc-1.12.0.2Text.Pandoc.Readers.Markdown readMarkdown centerImages