Hacking pandoc - jgm/pandoc GitHub Wiki

Complete pandoc consists of several distinct Haskell packages which you might need to look at:

To understand the pandoc implementation, besides Haskell

See also:

Understanding code snippets - a q & a style explanation of code snippets from an Intermediate functional programmer trying to learn Haskell and how to structure a Haskell project.