On 14 April 2010 16:03, Ashley Yakeley <ash...@semantic.org> 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
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to