Archived page · captured 2022-10-03

Literate Haskell Blogging

A blog post about adding literate Haskell support to a markdown framework.

About the post

The blog unsafePerformHack used a markdown framework that required code blocks to be indented by four spaces or a tab. Editing such text in a web browser was difficult, so the author explored adding literate Haskell support to markdown.

A small modification to the markdown+geshi patch from a previous post added literate Haskell support. The change took less time than writing the post, and the new patch was attached at the bottom of the page.

Test code

The post demonstrated rendering with examples such as inline Haskell markers, a list expression, and a main function intended to print an interesting sequence.

Surrounding posts

The entry appeared between posts titled Ant sucks. and Thue in Haskell on the unsafePerformHack blog.