[Haskell] Typing in haskell and mathematics