[Haskell-cafe] Function Precedence

Henning Thielemann lemming at henning-thielemann.de
Thu Apr 3 01:59:32 EDT 2008

On Wed, 2 Apr 2008, Hans Aberg wrote:

> 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.

You could define these instances with undefined function implementations 
anyway. But also in a more cleaner type hierarchy like that of 
NumericPrelude you should not define this instance, because it would open 
new surprising sources of errors:

More information about the Haskell-Cafe mailing list