HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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