pandoc-filter-indent (hackage): Formats marked code fragments, and allows pandoc to safely process rest of your literate program:  Usage:  Using lhs2TeX is somewhat inconvenient on large Markdown documents processed with pandoc, since it assumes that it can freely redefine everything. It is also pretty heavy on learning.  So instead we have a simple Pandoc filter that is only applied to CodeFragments and creates tabular code structures from indentation. It uses GHC lexer to assure that latest features are always parsed correctly.  Please see the README on GitHub at https://github.com/mgajda/pandoc-filter-indent#readme
Keywords: bsd3|library|program|text