[Haskell-cafe] Are there arithmetic composition of functions?
Ivan Lazar Miljenovic
ivan.miljenovic at gmail.com
Tue Mar 20 03:03:41 CET 2012
On 20 March 2012 12:27, Jerzy Karczmarczuk
<jerzy.karczmarczuk at unicaen.fr> wrote:
> Richard O'Keefe:
>
> class (Eq a, Show a) => Num a
> where (+) (-) (*) negate abs signum fromInteger
>
> where functions are for good reason not members of Eq or Show.
>
> This is an old song, changed several times. I have no intention to discuss,
> but please, Richard O'Keefe:
> WHICH GOOD REASONS??
Because there are no sensible ways of writing such instances?
--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com
More information about the Haskell-Cafe
mailing list