Agda-2.2.6: A dependently typed functional programming language and proof assistant
Agda.Utils.Either
Description
Utilities for the Either type
Either
Synopsis
isLeft :: Either a b -> BoolSource
Returns True iff the argument is Left x for some x.
True
Left x
Left
x
isRight :: Either a b -> BoolSource
Returns True iff the argument is Right x for some x.
Right x
Right
tests :: IO BoolSource