Hans Aberg writes:
...
But one should also be able to write (f+g)(x). - This does not work in Haskell, because Num requires an instance of Eq and Show.

So, declare them, even if they are vacuous. I did it several times, I am
still alive, so no need to say "this does not work". Jerzy Karczmarczuk

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to