[Haskell] De-typechecker: converting from a type to a term