rfc: include bimap into Data.Either

Joachim Breitner mail at joachim-breitner.de
Mon Apr 21 12:16:22 UTC 2014


Hi,

Am Sonntag, den 20.04.2014, 19:20 +0200 schrieb Dominique Devriese:
> * rename bimap to mapEither (or perhaps mapBoth)

+1

> * implement the functions as renames when possible: "mapEither =
> Control.Arrow.(+++)" and similarly.

*shrug* doesn’t really matter (unless this would hurt performance)

> * also add "mapRight :: (a -> b) -> Either c a -> Either c b"

+1


Thinking in expertise levels, using Either comes much earlier than using
ArrowChoice, and we should also suit the users that are on that level. A
reference to the more advanced functions should be added to the haddock.

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140421/1114b3fe/attachment-0001.sig>


More information about the Libraries mailing list