base-compat-0.4.0: A compatibility layer for base

Safe HaskellSafe-Inferred

Data.Either.Compat

Synopsis

Documentation

isLeft :: Either a b -> BoolSource

Return True if the given value is a Left-value, False otherwise.

Since: 4.7.0.0

isRight :: Either a b -> BoolSource

Return True if the given value is a Right-value, False otherwise.

Since: 4.7.0.0