Re: class parameters to existential datatypes
6 Dec
2001
6 Dec
'01
9:11 p.m.
At 2001-12-06 13:04, John Hughes wrote:
data Foo c = forall a . c a => Foo a
What are you trying to say? In 'data Foo c' you are saying that c is a type (as a parameter). In 'c a =>' you are saying that c is a class. So naturally Haskell complains. -- Ashley Yakeley, Seattle WA
9036
Age (days ago)
9036
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ashley Yakeley