leftToMaybe/rightToMaybe

David Luposchainsky dluposchainsky at googlemail.com
Thu Aug 8 13:22:41 CEST 2013


On 2013-08-08 13:09, Henning Thielemann wrote:
> For me using the arrow functions as Data.Tuple and Data.Either utility
> functions is abuse. Control.Arrow is meant to generalize (->). If you
> call maybeLeft and MaybeRight this is certainly not your intention.

That is precisely my point. The functionality is there, it's accessible,
but due to meta-concerns (i.e. the "meaning of using these functions")
they should not be used in a certain context. The syntax is sort of nice
though, so maybe we should adopt that for Either/Tuple where applicable.

David




More information about the Libraries mailing list