plutus-core-1.36.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Either.Extras

Synopsis

Documentation

unsafeFromEither :: Exception e => Either e a -> a Source #

If argument is Left throw an exception, otherwise return the value inside Right.

fromRightM :: Monad m => (a -> m b) -> Either a b -> m b Source #

If argument is Right return its value, otherwise apply the given action to the value of Left and return its result.