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

Modulepolysemy-1.9.2.0Haskell2010

Polysemy.Fail

  • 1 type
  • 4 values
  • Packagepolysemy-1.9.2.0
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceType.hs

Effect

1 declaration
newtypenewtype Fail (m :: k) (a :: k1)
#

This effect abstracts the concept of Control.Monad.Fail.MonadFail, which is a built-in mechanism that converts pattern matching errors to calls to the current monad's instance of that class.

The instance defined in Polysemy.Internal uses this effect to catch those errors.

Constructors

Interpretations

4 declarations