Converting XML Documents to Haskell Modules