Converted to literate haskell, compiled with pandoc