Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- escalate :: (Exception exc, MonadThrow m) => Either exc a -> m a
- escalateAs :: (Exception exc, MonadThrow m) => (l -> exc) -> Either l a -> m a
Documentation
escalateAs :: (Exception exc, MonadThrow m) => (l -> exc) -> Either l a -> m a Source #
Examples: > escalate . maybeToEither err404
| Note that exceptions gets handled by warp and logged (user sees just "Internal server")