[Haskell] -fno-monomorphism-restriction makes type-inference ambiguous?