[Haskell-cafe] [] == []
Paul Keir
pkeir at dcs.gla.ac.uk
Fri May 29 05:47:26 EDT 2009
Hi all,
GHC is not happy with this:
f = [] == []
nor this:
f' = ([]::(Eq a) => [a]) == ([]::(Eq a) => [a])
but this is OK:
f'' = ([]::[Integer]) == ([]::[Integer])
GHCI is comfortable with [] == [], so why not GHC? 'Just curious.
Cheers,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090529/5d5bef6a/attachment.html
More information about the Haskell-Cafe
mailing list