Proposal: Add isLeft/isRight to Data.Either
Edward Kmett
ekmett at gmail.com
Sat Dec 1 03:39:21 CET 2012
On Fri, Nov 30, 2012 at 6:48 PM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:
>
> On Fri, 30 Nov 2012, Edward Kmett wrote:
>
> You can add lens to the list of packages that had to define their own
>> (for doctest purposes). ;)
>>
>
> I grepped for isLeft and isRight in lens-3.6 but did not find them.
>
It is used in Projection tests in the as yet unreleased 3.7 on github.
src/Control/Lens/Projection.hs:-- >>> let isLeft (Left _) = True; isLeft
_ = False
-Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20121130/ed3fddde/attachment.htm>
More information about the Libraries
mailing list