morley-1.18.0: Developer tools for the Michelson Language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Morley.Util.Exception

Synopsis

General simple helpers

throwLeft :: (MonadThrow m, Exception e) => m (Either e a) -> m a Source #

If monadic action returns a Left value, it will be thrown. Otherwise the returned value will be returned as is.