HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleerrors-2.3.0Haskell98

Control.Error.Safe

This module extends the safe library's functions with corresponding versions compatible with Either and ExceptT, and also provides a few Maybe-compatible functions missing from safe.

I suffix the Either-compatible functions with Err and prefix the ExceptT-compatible functions with try.

Note that this library re-exports the Maybe compatible functions from safe in the Control.Error module, so they are not provided here.

The 'Z'-suffixed functions generalize the Maybe functions to also work with anything that implements MonadPlus, including:

Contents
  1. Maybe-compatible functions
  2. Either-compatible functions
  3. ExceptT-compatible functions
  4. MonadPlus-compatible functions
Synopsis
  • Packageerrors-2.3.0
  • Exports43
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceSafe.hs

Maybe-compatible functions

Either-compatible functions

ExceptT-compatible functions

MonadPlus-compatible functions