A Down newtype in Data.Ord?

Ben Millwood haskell at benmachine.co.uk
Sat Nov 19 22:46:29 CET 2011


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.



More information about the Libraries mailing list