Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
module Data.Either
fromEither :: Either a a -> a Source
Pull the value out of an Either
where both alternatives
have the same type.
\x -> fromEither (Left x ) == x \x -> fromEither (Right x) == x