HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

newtypenewtype ConformT ue fe w (m :: Type -> Type) a

A conforming monad transformer to compute a result according to a spec.

RFC 2119 describes these terms:

  1. MUST and MUST NOT: These describe absolute requirements or absolute prohibitions. However, some implementations still do not adhere to these. Some of those situations are fixable, and some are not.

If the situation is fixable, we error with an error of type ue.

If the situation is fixable, we can either error out (a strict implementation) with an error of type fe or apply the fix. The fe parameter represents fixable errors, which can either be emitted as warnings, or errored on. A predicate (fe -> Bool) decides whether to fix the error. (The predicate returns True if the fixable error is to be fixed.) 2. SHOULD and SHOULD NOT: These describe weaker requirements or prohibitions. The w parameter represents warnings to represent cases where requirements or prohibitions were violated.

Constructors

Instances7MonadError, MonadReader, MonadWriter, MonadTrans, Monad, Functor, …
datadata HaltReason ue fe
#
Instances4Eq, Show, Exception, MonadError
datadata Notes fe w
#

Constructors

Instances5Eq, Show, Semigroup, Monoid, MonadWriter