BSD-3-Clause licensed by Kamil Dworakowski
Maintained by [email protected]
This version can be pinned in stack with:error-or-0.3.1@sha256:fe745630ba940acc079ea5dc97800ee30406e1abf83c1a88dda03813eb329937,1499

Module documentation for 0.3.1

Depends on 4 packages(full list with versions):
Used by 2 packages in nightly-2026-11-17(full list with versions):

error-or

Hackage

Composable, hierarchical errors.

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

0.1.1.0 (2020-12-02)

  • Add tagIO