RE: Rank-2 polymorphism & type inference

6 Dec
2000
6 Dec
'00
5:15 p.m.
Hello.
< class C t where op :: t -> Bool
< instance C [t] where op x = True
<
< p y = (let f :: c -> Bool; f x = op (y >> return x) in f, y ++ [])
< q y = (y ++ [], let f :: c -> Bool; f x = op (y >> return x) in f)
<
8980
Age (days ago)
8980
Last active (days ago)
0 comments
1 participants
participants (1)
-
Carlos Camarao de Figueiredo