A Down newtype in Data.Ord?
michael at snoyman.com
Fri Nov 18 23:21:36 CET 2011
On Fri, Nov 18, 2011 at 11:48 AM, Daniel Peebles <pumpkingod at gmail.com> wrote:
> I noticed that the Down newtype (whose Ord instance inverts its payload's
> ordering) currently only exists in GHC.Exts, and it seems like something
> fairly generally useful. What do people think of moving it to (or
> re-exporting it from) Data.Ord? Moving it would be nicer, but the fancy list
> comprehension desugaring might want it in GHC.Exts, so I'm not sure what the
> consequences would be.
> Anyone have comments/ideas?
I have no opinion on whether it's moved or re-exported, but +1 on
providing this type.
More information about the Libraries