morley-1.15.1: 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.