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.Internal.CustomErrors.Redefined

This code is copied verbatim from Type.Errors due to limitations in the (GHC 8.6) plugin machinery. See #152 for more info.

  • 3 types
  • Packagepolysemy-1.9.2.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceRedefined.hs
familytype family IfStuck (expr :: k) (b :: k1) (c :: Exp k1) :: k1 where
#

IfStuck expr b c leaves b in the residual constraints whenever expr is stuck, otherwise it Evaluates c.

Equations

typetype UnlessStuck (expr :: k) (c :: Exp Constraint) = IfStuck expr NoError c
#

Like IfStuck, but leaves no residual constraint when expr is stuck. This can be used to ensure an expression isn't stuck before analyzing it further.