conversion script (Haskell + pandoc)