HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleghc-tcplugins-extra-0.5Haskell2010

GHC.TcPluginM.Extra

  • Cpp
Contents
  1. Create new constraints
  2. Creating evidence
  3. Lookup
  4. Trace state of the plugin
  5. Substitutions
Synopsis

Create new constraints

Creating evidence

Lookup

Trace state of the plugin

Substitutions

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.