[Haskell-cafe] Typeclass constraints not inferred when defining a function