Proposal: Show and Read for Data.Ord.Down

Joachim Breitner mail at joachim-breitner.de
Fri Oct 11 23:15:06 UTC 2013


Hi,

Am Mittwoch, den 25.09.2013, 15:17 +0200 schrieb Krzysztof Gogolewski:
> I propose to add derived Show and Read instances to Data.Ord.Down.
> This should be uncontroversial. Any thoughts?

I could imagine that such instances were intentionally not put there
because the author of Down has intended it to be used only
“temporarily”, e.g.
        map (\(Down x) -> x) . sort . map Down
so the absence of the instances encourage that usage pattern.

Not sure though if base should be encouraging certain usage patterns.
Also, Show is useful for debugging.

A mildly positive *shrug* from me.

Greetings
Joachim


-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0x4743206C
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/libraries/attachments/20131011/ce729faa/attachment.sig>


More information about the Libraries mailing list