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

Data.Either.Extras

Synopsis

Documentation

unsafeFromEitherException e ⇒ Either e a → a Source #

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

fromRightMMonad 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.