Tool for including code in documents. Extends pandoc with the ability to include blocks of source code from other files, as well as evaluate haskell code in ghci. Partially inspired by tut.
Can be used either as an executable, or as a library which can be used with Hakyll.
This README and example.md
were generated from the files in
htut-input/
, by running htut in the directory of this project.
To use htut with hakyll, defaultHakyllTut
can be passed as an argument
to pandocCompilerWithTransformM
:
λ> import Hakyll
λ> import Tut.Hakyll(defaultHakyllTut)
λ> :t defaultHakyllTut
defaultHakyllTut :: Walkable Block b => b -> Compiler b
λ> :t pandocCompilerWithTransformM
pandocCompilerWithTransformM
:: ReaderOptions
-> WriterOptions
-> (Pandoc -> Compiler Pandoc)
-> Compiler (Item String)
λ> :t pandocCompilerWithTransformM def def defaultHakyllTut
pandocCompilerWithTransformM def def defaultHakyllTut
:: Compiler (Item String)