
3 Nov
2018
3 Nov
'18
9:14 p.m.
This guide would be a perfect fit for literate Haskell [1]. It is a file format where you mix markup (e.g. LaTeX) and Haskell, so the file can be interpreted either way. In a nutshell, your html content becomes Haskell comments or the Haskell becomes <code> blocks in html. In that way, your readers could just load your document into ghci and play with it. Not sure whether html is supported out of the box, though. You might need to pass the .lhs file through pandoc [2] or another tool. Can anyone clarify/help on this? Cheers, Olaf [1] https://wiki.haskell.org/Literate_programming [2] https://groups.google.com/forum/#!topic/hakyll/lFfHAk2nxbs