[Haskell-cafe] Problems instancing a class

Stefan Holdermans stefan at cs.uu.nl
Sat Feb 18 14:09:38 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> Illegal instance declaration for `MyClass (HashTable String String)'
>>     (The instance type must be of form (T a b c)
>>      where T is not a synonym, and a,b,c are distinct type variables)
>> In the instance declaration for `MyClass (HashTable String String)'
>>
>>    even though the documentation in GHC states that HashTable is
>> declared as "data".
>
> (Guessing) Maybe because 'String' is not a type variable?

*Exactly* because of that.

Cheers,

   Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFD93DyX0lh0JDNIpwRAuuWAJ9tT1n0RqDTP7yfJKGLLVDv6Nxf6wCfX6um
NsEcRI/1PSif8RVkK28SOjI=
=AhuP
-----END PGP SIGNATURE-----


More information about the Haskell-Cafe mailing list