[Haskell-cafe] "show" for functional types

Brian Hulley brianh at metamilk.com
Sat Apr 1 12:11:01 EST 2006


Brian Hulley wrote:
>    (==) (Add xs) (Add ys) = and (map (\(x, y) -> x==y) (zip xs ys))

What on earth was I thinking!!! ;-) Should be:

     (==) (Add xs) (Add ys) = xs == ys

(Doesn't affect the validity of my argument though...)




More information about the Haskell-Cafe mailing list