Copyright | (c) Sirui Lu 2021-2023 |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | siruilu@cs.washington.edu |
Stability | Experimental |
Portability | GHC only |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Synopsis
- mrgThrowError :: (MonadError e m, MonadUnion m, Mergeable a) => e -> m a
- mrgCatchError :: (MonadError e m, MonadUnion m, Mergeable a) => m a -> (e -> m a) -> m a
mrg* variants for operations in Control.Monad.Except
mrgThrowError :: (MonadError e m, MonadUnion m, Mergeable a) => e -> m a Source #
throwError
with MergingStrategy
knowledge propagation.
mrgCatchError :: (MonadError e m, MonadUnion m, Mergeable a) => m a -> (e -> m a) -> m a Source #
catchError
with MergingStrategy
knowledge propagation.