I finally got around to play with Midi Haskell...
cabal install Haskore ...
then downloaded Haskore package from hackage and tried out a couple of programs in the examples dir ... they beautifully generate midi files!!!
I think I need to revisit the Haskell School of Expression!