On 14 April 2010 16:03, Ashley Yakeley <[email protected]> wrote:
> Why isn't there an instance Eq (a -> b) ?

How do you prove that f = (2*) and g x = x + x are equal?
Mathematically, you can; but the only way you can "prove" it in
Haskell is by comparing the values for the entire domain  (which gets
computationally expensive)...

Or, how about higher order functions like map?

-- 
Ivan Lazar Miljenovic
[email protected]
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to