
20 Feb
2009
20 Feb
'09
7:44 a.m.
Rafael Gustavo da Cunha Pereira Pinto
you are applying the type to lookup only!
try let lookupIn = ((flip lookup ) :: (Eq a) => [(a, b)] -> a -> Maybe b )
Oops, I didn't mean to include my attempts at type annotation in my previous email...I meant to write ghci> let lookupIn = flip lookup But it doesn't seem to make any difference either way. I still get ghci> :t lookupIn lookupIn :: [((), b)] -> () -> Maybe b regardless :( -- Matt