cardano-wasm:cardano-wasi-lib
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Wasm.ExceptionHandling

Synopsis

Documentation

toMonadFail :: (Exception e, MonadFail m) => Either e a -> m a Source #

Convert an Either value to a MonadFail monad. This can be useful for converting MonadThrow monads into Aeson Parser monads, but it loses the stack trace information.