added Haskell version of generator
tweaked Makefile and README for Haskell compat