Idris2Doc : Data.Either

Data.Either

Reexports

importpublic Control.Function

Definitions

getLeft : Eitherab->Maybea
  Extract the Left value, if possible

Totality: total
Visibility: public export
getRight : Eitherab->Maybeb
  Extract the Right value, if possible

Totality: total
Visibility: public export
isLeft : Eitherab->Bool
  True if the argument is Left, False otherwise

Totality: total
Visibility: public export
isRight : Eitherab->Bool
  True if the argument is Right, False otherwise

Totality: total
Visibility: public export
dataIsRight : Eitherab->Type
  Proof that an `Either` is actually a Right value

Totality: total
Visibility: public export
Constructor: 
ItIsRight : IsRight (Rightx)

Hint: 
Uninhabited (IsRight (Leftx))
dataIsLeft : Eitherab->Type
  Proof that an `Either` is actually a Left value

Totality: total
Visibility: public export
Constructor: 
ItIsLeft : IsLeft (Leftx)

Hint: 
Uninhabited (IsLeft (Rightx))
compress : List (Eitherab) ->List (Either (List1a) (List1b))
  Compress the list of Lefts and Rights by accumulating
all of the lefts and rights into non-empty blocks.

Totality: total
Visibility: export
decompress : List (Either (List1a) (List1b)) ->List (Eitherab)
  Decompress a compressed list. This is the left inverse of `compress` but not its
right inverse because nothing forces the input to be maximally compressed!

Totality: total
Visibility: export
lefts : List (Eitherab) ->Lista
  Keep the payloads of all Left constructors in a list of Eithers

Totality: total
Visibility: public export
rights : List (Eitherab) ->Listb
  Keep the payloads of all Right constructors in a list of Eithers

Totality: total
Visibility: public export
partitionEithers : List (Eitherab) -> (Lista, Listb)
  Split a list of Eithers into a list of the left elements and a list of the right elements

Totality: total
Visibility: public export
fromEither : Eitheraa->a
  Remove a "useless" Either by collapsing the case distinction

Totality: total
Visibility: public export
mirror : Eitherab->Eitherba
  Right becomes left and left becomes right

Totality: total
Visibility: public export
pushInto : c->Eitherab->Either (c, a) (c, b)
Totality: total
Visibility: export
maybeToEither : Lazy e->Maybea->Eitherea
  Convert a Maybe to an Either by using a default value in case of Nothing
@ e the default value

Totality: total
Visibility: public export
eitherToMaybe : Eitherea->Maybea
  Convert an Either to a Maybe from Right injection

Totality: total
Visibility: public export
eitherMapFusion : (f : (a->{a:4822})) -> (g : ({b:4820}->{a:4822})) -> (p : (b->{b:4820})) -> (e : Eitherab) ->either (Delay f) (Delay g) (mappe) =either (Delay f) (Delay (g.p)) e
Totality: total
Visibility: export
eitherBimapFusion : (f : ({a:4920}->{a:4926})) -> (g : ({b:4921}->{a:4926})) -> (p : ({a:4918}->{a:4920})) -> (q : ({b:4919}->{b:4921})) -> (e : Either{a:4918}{b:4919}) ->either (Delay f) (Delay g) (bimappqe) =either (Delay (f.p)) (Delay (g.q)) e
Totality: total
Visibility: export