adding haskell code for the parsec library post