"Cagdas Ozgenc" <[EMAIL PROTECTED]> writes:
> class NewClass a where
> myTT :: [a]
> It seems to be a valid Haskell construct, but I do not comprehend the
> semantics of it.
Perhaps I'm entirely off base here, but members of the class needs
(relatively, you can leave it undefined, of course) to declare a list
named myTT.
instance NewClass Integer where
myTT = [4, 360, 7, -20]
Not much different from declaring a function (what's the difference,
anyway? :-) or a constant:
instance CommutativeGroup Integer where
zero = 0
(+) = ...
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe