[clean-list] overloading problem
Tue, 3 Apr 2001 18:20:00 +0200
I've got a little problem with the following program:
:: Set a :== [a]
isinset :: a (Set a) -> Bool | ==a
isinset x set=isMember x set
intersect :: (Set a) (Set a) -> (Set a) | ==a
intersect  =
intersect x y=[r \\ r <- x | (isinset r y)]
When I do "Start=(intersect  )" I get the following Error:
"Start" cannot be overloaded: Set a | ==a"
Whereas when I do "Start=(intersect [1,2,3] [2,3,4]" I get the correct
What am I doing wrong?