Hakyll uses Pandoc to process markdown and code snippets. It’s very easy to integrate Kate to Hakyll for code highlighting. But I choose to switch to Pygments due to its support for many programming languages.

This post is about writing a parser in Standard ML. I try to fit the code in the idiom of Haskell. It may not pragmatic SML code.