HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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:

  • 43 values
  • Packageerrors-2.3.0
  • Exports43
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceSafe.hs

Maybe-compatible functions

2 declarations

Either-compatible functions

13 declarations

ExceptT-compatible functions

14 declarations

MonadPlus-compatible functions

14 declarations