[Haskell] Class type constraining?