add haskell version of parsing. still in work