[Haskell-cafe] Function Precedence

jerzy.karczmarczuk at info.unicaen.fr jerzy.karczmarczuk at info.unicaen.fr
Wed Apr 2 07:51:59 EDT 2008


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 




More information about the Haskell-Cafe mailing list