Haskell HepMC parser and builder