}oG      !"#$%&'()*+,-./0123456789:;<=>?@ABCD E F  Safe-InferedGHIJKLGHIJKLGHIJKL Brent Yorgey <byorgey@gmail.com> Safe-InferedEWordPress 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> Safe-InferedBGiven 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.  Brent Yorgey <byorgey@gmail.com> Safe-InferedBInformation 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> Safe-Infered AStyle preferences are specified as a list of mappings from class ' attributes to CSS style attributes. %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. ?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.       Brent Yorgey <byorgey@gmail.com> Safe-Infered4Configuration 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? %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) %Blog xmlrpc URL &Blog user name '2Blog password (omit to be interactively prompted) ( Post title ) File to post *ID of a post to update + Create a "page" instead of a post ,Should the post be published? * (Otherwise it is uploaded as a draft.) -%Extension arguments, for use e.g. by  custom transforms .(Command-line configuration for use with cmdargs.  !"#$%&'()*+,-. !"#$%&'()*+,-. !"#$%&'()*+,-. !"#$%&'()*+,-. Brent Yorgey <byorgey@gmail.com> Safe-Infered/&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. 0Upload a file using the metaWeblog.newMediaObject XML-RPC method  call. 1Prepare a file for upload. /01/01/01/01 Brent Yorgey <byorgey@gmail.com> Safe-Infered2APrepare a post for uploading by creating something of the proper . form to be an argument to an XML-RPC call. 32Given a name and a list of values, create a named "array" field 0 suitable for inclusion in an XML-RPC struct. 4EGiven a configuration and a formatted post, upload it to the server. 2 Post title  Post content List of categories  List of tags True = page, False = post 34234234234 Brent Yorgey <byorgey@gmail.com> Safe-Infered5;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 -  field of the  configuration. *The transformation is then specified as a M IO N  N arrow, which is isomorphic to Pandoc -> IO Pandoc. If $ you have a pure function of type Pandoc -> Pandoc, wrap it in a  call to O to produce a M arrow. If you have a  function Pandoc -> IO Pandoc, wrap it in the M  constructor. AFor examples, see the implementations of the standard transforms  below. 7/A document transformation, which can depend on 2 BlogLiterately options and can have effects in  the IO monad. 83A condition under which to run the transformation. 9Run a 5 (if its condition is met). :Run a pipeline of 5s. ;,Format embedded LaTeX for WordPress (if the wplatex flag is set). <Format embedded ghci sessions (if the ghci flag is set). =3Upload embedded local images to the server (if the  uploadImages  flag is set). >,Perform syntax highlighting on code blocks. ?8The standard set of transforms that are run by default:  ;, <, =, >. @<Center any images which occur in a paragraph by themselves. # Inline images are not affected. A=Transform a complete input document string to an HTML output 2 string, given a list of transformation passes. BTurn CRLF pairs into a single LF. This is necessary since  P is picky about line endings. C;A useful arrow utility for running some part of a pipeline  conditionally. 56789:;<=>?@ABC56789:;<=>?@ABC56789:;<=>?@ACB 56789:;<=>?@ABC  Brent Yorgey <byorgey@gmail.com> Safe-InferedD(The default BlogLiterately application. ELike D-, but with the ability to specify additional  5s which will be applied after the standard ones. FLike D, but with the ability to replace the  standard 5.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. DEFDEFDEFDEF  Brent Yorgey <byorgey@gmail.com> Safe-InferedG  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFQ   !"#$%&&'()*+,-./0123456789:;<=>?@@ABCDEFGHIJKLM N O P Q R S T U VWXYZ[\WX]^_`aBlogLiterately-0.5.2Text.BlogLiterately.LaTeXText.BlogLiterately.BlockText.BlogLiterately.GhciText.BlogLiterately.HighlightText.BlogLiterately.OptionsText.BlogLiterately.ImageText.BlogLiterately.PostText.BlogLiterately.TransformText.BlogLiterately.RunPaths_BlogLiteratelyText.BlogLiteratelywpTeXifyunTag ProcessInfoghciEvalwithGhciProcess isLiteratestopGhcimagicextract'extractbreaksformatInlineGhci StylePrefs HsHighlight HsNoHighlightHsKate HsColourCSSHsColourInlinecolourItlitifydefaultStylePrefs getStylePrefs bakeStyles replaceBreakscolouriseCodeBlockcolourisePandocBlogLiteratelystyle hsHighlightotherHighlightwplatexghci uploadImages categoriestagsblogidbloguserpasswordtitlefilepostidpagepublishxtrablOptsuploadAllImagesuploadIt mkMediaObjectmkPostmkArraypostIt Transform getTransformxfCond runTransform runTransforms wptexifyXFghciXFimagesXF highlightXFstandardTransformscenterImagesXFxformDocfixLineEndingswhenAblogLiteratelyblogLiteratelyWithblogLiteratelyCustomversion getBinDir getLibDir getDataDir getLibexecDirgetDataFileNamebase Control.ArrowKleislipandoc-types-1.9.1Text.Pandoc.DefinitionPandocarrpandoc-1.9.4.2Text.Pandoc.Readers.Markdown readMarkdown