Capture all the errors by using the Applicative instance
Add error context to results from lower level with ‘tag’
Changes
0.3.1 (2026-11-14)
Fix tagIO: it now tags synchronous exceptions and lets asynchronous ones
pass unchanged. In 0.3.0 it did the opposite, despite what the changelog said.
prettyErrAcc indents every line of a multi-line message, not only the first
tagIO lets ExitCode pass unchanged, so exitWith inside it still exits
with the intended code instead of becoming an error
0.3.0 (2022-06-16)
tagIO now wraps any non async exception, used to wrap only IOExceptions and
user errors (from error function)
compatiblity with mtl-2.3
0.2.0.0 (2021-06-24)
Renames to reduce the likelihood of name collisions on importing the module unqualified
rename err to failText, to suggest the use of MonadFail.fail
prepend ErrAcc constructors with ‘Err’ prefix
rename pretty to prettyErrAcc
Define a MonadError instance for ErrorOr
0.1.2.0 (2020-12-16)
Mark the OK and Error patterns of ErrorOr complete for the exhaustiveness checker