Proposal #2560 again: add newtype Down/ReverseOrd to Data.Ord

Stefan Holdermans stefan at cs.uu.nl
Wed Jan 7 01:38:21 EST 2009


Twan,

> How about:
>
> -- intended for |qualified| import |as Ord|:
> newtype Dual a = Dual { unDual :: a } deriving Eq

+1 for Dual.

Cheers,

   Stefan


More information about the Libraries mailing list