morley-1.12.0: Developer tools for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

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.