Proposal: Num instance for tuples

Dan Doel dan.doel at gmail.com
Thu Oct 18 14:57:33 CEST 2012


On Thu, Oct 18, 2012 at 7:34 AM, Edward Kmett <ekmett at gmail.com> wrote:
> Unlike the rest of the comments so far, I am
>
> +1
>
> to this proposal.
>
> It has the only reasonable semantics.

There are at least two reasonable choices. The first is this. The
second is given by the fact that for any Num a and Applicative f, we
can write Num (f a) by lifting all the operations.

I suppose the one proposed here might be more commonly used.

-- Dan



More information about the Libraries mailing list