HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleghc-tcplugins-extra-0.4.6Haskell2010

GHC.TcPluginM.Extra

  • 11 values
  • Cpp

Create new constraints

2 declarations

Creating evidence

1 declaration
valueevByFiat
  1. :: String

    Name the coercion should have

  2. -> Type

    The LHS of the equivalence relation (~)

  3. -> Type

    The RHS of the equivalence relation (~)

  4. -> EvTerm
#

The EvTerm equivalent for Unsafe.unsafeCoerce

Lookup

2 declarations

Trace state of the plugin

1 declaration

Print out extra information about the initialisation, stop, and every run of the plugin when -ddump-tc-trace is enabled.

Substitutions

5 declarations
valueflattenGivens :: [Ct] -> [Ct]
#

Flattens evidence of constraints by substituting each others equalities.

NB: Should only be used on [G]iven constraints!

NB: Doesn't flatten under binders

valuemkSubst' :: [Ct] -> [((TcTyVar, TcType), Ct)]
#

Create flattened substitutions from type equalities, i.e. the substitutions have been applied to each others right hand sides.