HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-tcplugins-extra-0.5Haskell2010

GHC.TcPluginM.Extra

  • 12 values
  • Cpp

Create new constraints

2 declarations

Creating evidence

2 declarations
valueevByFiatWithDependencies
  1. :: String

    Name the coercion should have

  2. -> [Coercion]

    The set of all the in-scope coercion that the proof makes use of.

  3. -> Type

    The LHS of the equivalence relation (~)

  4. -> Type

    The RHS of the equivalence relation (~)

  5. -> 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.