[Haskell-cafe] function arithmetic?
Christopher Howard
christopher.howard at frigidcode.com
Sun Sep 1 09:06:46 CEST 2013
On 08/31/2013 09:27 PM, Charlie Paul wrote:
> I believe that this is what you want:
> http://www.haskell.org/haskellwiki/Num_instance_for_functions
>
> On Sat, Aug 31, 2013 at 10:01 PM, Christopher Howard
> <christopher.howard at frigidcode.com> wrote:
The author seemed to be subtly mocking the idea. It seemed to be
suggesting that a Num instance for functions would imply the need for
constant number functions, which leads to difficulties. But I don't see
why one would have to take it that far.
In any case, I just tried the NumInstances package from Hackage and it
seems to work great.
More information about the Haskell-Cafe
mailing list