Added some basic haskell for manipulating output files