[Haskell] Converting to Foreign types