first working version of haskell parser (at least, it doesnt crash...)