Proposal: Num instance for tuples
ekmett at gmail.com
Fri Oct 19 18:32:56 CEST 2012
Our V2 doesn't *quite* match, since V2 requires the two fields to have the
same type, but I agree. =)
On Thu, Oct 18, 2012 at 2:36 PM, Anthony Cowley <acowley at seas.upenn.edu>wrote:
> On Thu, Oct 18, 2012 at 4:47 PM, Ivan Lazar Miljenovic
> <ivan.miljenovic at gmail.com> wrote:
> > On 19 October 2012 04:57, Henning Thielemann
> > <lemming at henning-thielemann.de> wrote:
> >> On Thu, 18 Oct 2012, Brent Yorgey wrote:
> >>> I am +1 for this proposal, but only as long as these instances are not
> >>> exported by the Prelude. They are useful when you know you want them
> >>> but will confuse newbies -- based on evidence from #haskell, where
> >>> lambdabot has such instances in scope.
> >> Please no orphan instances - I think a pair type that supports
> >> deserves a custom type.
> > Agreed. Another -1 on the proposal from me.
> I am also with Henning, and a -1 for the proposal. If it's too
> confusing to export by default, then the instance belongs to a less
> general type. There are appropriate types that have the desired
> behavior all over hackage. I am currently partial to V2 from the
> linear package.
> Libraries mailing list
> Libraries at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries