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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to