[Haskell] Ambiguity problem