[Haskell-cafe] Are there arithmetic composition of functions?

Chris Smith cdsmith at gmail.com
Tue Mar 20 02:21:04 CET 2012

On Mon, Mar 19, 2012 at 7:16 PM, Richard O'Keefe <ok at cs.otago.ac.nz> wrote:
> One problem with hooking functions into the Haskell numeric
> classes is right at the beginning:
>    class (Eq a, Show a) => Num a

This is true in base 4.4, but is no longer true in base 4.5.  Hence my
earlier comment about if you're willing to depend on a recent version
of base.  Effectively, this means requiring a recent GHC, since I'm
pretty sure base is not independently installable.

Chris Smith

More information about the Haskell-Cafe mailing list