[Haskell] class functional depency inference?