agda-snippets-hakyll-0.1.2.2: Literate Agda support using agda-snippets, for Hakyll pages.

Safe HaskellNone
LanguageHaskell2010

Hakyll.Contrib.Agda

Contents

Synopsis

Literate Agda Compilers

literateAgdaCompiler Source #

Arguments

:: CommandLineOptions

Agda command line options

-> FileType

Format to use when reading other, non-Agda blocks.

-> URI

Base URI where external libraries can be found.

-> Compiler (Item String) 

Compile a literate Agda document with the given Agda command line options, text block format type, and library uri for hyperlinks.

literateAgdaCompilerWith Source #

Arguments

:: CommandLineOptions

Agda command line options

-> FileType

Format to use when reading other, non-Agda blocks.

-> URI

Base URI where external libraries can be found.

-> ReaderOptions

Pandoc reader options

-> WriterOptions

Pandoc writer options

-> Compiler (Item String) 

Like literateAgdaCompiler, but Pandoc options can be specified.

literateAgdaCompilerWithTransform Source #

Arguments

:: CommandLineOptions

Agda command line options

-> FileType

Format to use when reading other, non-Agda blocks.

-> URI

Base URI where external libraries can be found.

-> ReaderOptions

Pandoc reader options

-> WriterOptions

Pandoc writer options

-> (Item Pandoc -> Item Pandoc)

Transformation to run

-> Compiler (Item String) 

Like literateAgdaCompilerWith, but an arbitrary transformation of the Pandoc document can be added.

literateAgdaCompilerWithTransformM Source #

Arguments

:: CommandLineOptions

Agda command line options

-> FileType

Format to use when reading other, non-Agda blocks.

-> URI

Base URI where external libraries can be found.

-> ReaderOptions

Pandoc reader options

-> WriterOptions

Pandoc writer options

-> (Item Pandoc -> Compiler (Item Pandoc))

Transformation to run

-> Compiler (Item String) 

Like literateAgdaCompilerWithTransform, but the transformation given is monadic.

Building Blocks

defaultFileType Source #

Arguments

:: FileType

File type to default to

-> (Item a -> Compiler (Item b))

Pipeline function to run

-> Item a 
-> Compiler (Item b) 

Run a function that might be part of your compiler pipeline, except that if the text format type cannot be detected from the extension (e.g, if it's a lagda file), the specified file type will be used instead of Binary.

readLiterateAgda Source #

Arguments

:: CommandLineOptions

Agda command line options

-> URI

Base URI where external libraries can be found.

-> Item String 
-> Compiler (Item String) 

Read a literate Agda document using the given options, producing a string with literate Agda snippets replaced with HTML, but everything else untouched.

Command line options