A Down newtype in Data.Ord?

Edward Kmett ekmett at gmail.com
Sat Nov 19 23:03:07 CET 2011


Dual already has an Ord instance.

Sent from my iPhone

On Nov 19, 2011, at 4:46 PM, Ben Millwood <haskell at benmachine.co.uk> wrote:

> On Sat, Nov 19, 2011 at 8:32 PM, Felipe Almeida Lessa
> <felipe.lessa at gmail.com> wrote:
>> On Sat, Nov 19, 2011 at 6:19 PM, Sjoerd Visscher <sjoerd at w3future.com> wrote:
>>> Desc has the same problem as Down: it doesn't make clear that it makes an already descending ordering ascending.
>> 
>> Desc reminds me of tables where you click the header and change
>> between ascending and descending.  Invert, Dual, Down and Opposite
>> don't remind me of anything regarding orders at all.  What are you
>> inverting?  Dual of what?  Of couse, that's only my humble opinion.
>> =)
>> 
> 
> Just to confuse and frustrate things further, I'm going to suggest
> Reverse. I think that's the normal word I'd use to describe a flipped
> ordering.
> 
> I don't see any harm in reusing the existing Dual newtype from Monoid, though.
> 
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries



More information about the Libraries mailing list