Keep the payloads of all Right constructors in a list of Eithers
Right is injective
Split a list of Eithers into a list of the left elements and a list of the right elements
Right becomes left and left becomes right
Convert a Maybe to an Either by using a default value in case of Nothing
the default value
Keep the payloads of all Left constructors in a list of Eithers
Left is injective
True if the argument is Right, False otherwise
True if the argument is Left, False otherwise
Remove a "useless" Either by collapsing the case distinction
Simply-typed eliminator for Either
the action to take on Left
the action to take on Right
the sum to analyze
A sum type