[Haskell] Parsing Typed Data from a String