Copyright | (c) Owen Shepherd 2021 |
---|---|
License | MIT |
Maintainer | owen@owen.cafe |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data MultiExcept err a
- runMultiExcept :: MultiExcept err a -> Either (NonEmpty err) a
- throwError :: err -> MultiExcept err a
- succeed :: a -> MultiExcept err a
Documentation
data MultiExcept err a Source #
A MultiExcept is a success value, or one or more errors
Instances
runMultiExcept :: MultiExcept err a -> Either (NonEmpty err) a Source #
Run the computation
throwError :: err -> MultiExcept err a Source #
Throw a single error
succeed :: a -> MultiExcept err a Source #
Embeds a value into a MultiExcept context