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

Moduleghc-9.10.3GHC2021

GHC.Tc.Plugin

This module provides an interface for typechecker plugins to access select functions of the TcM, principally those to do with reading parts of the state.

  • 2 types
  • 27 values
  • Packageghc-9.10.3
  • Exports29
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourcePlugin.hs

Basic TcPluginM functionality

4 declarations
valueunsafeTcPluginTcM :: TcM a -> TcPluginM a
#

This function provides an escape for direct access to the TcM monad. It should not be used lightly, and the provided TcPluginM API should be favoured instead.

Finding Modules and Names

3 declarations
datadata FindResult
#

The result of searching for an imported module.

NB: FindResult manages both user source-import lookups (which can result in Module) as well as direct imports for interfaces (which always result in InstalledModule).

Constructors

Looking up Names in the typechecking environment

6 declarations

Getting the TcM state

6 declarations

Type variables

3 declarations

Zonking

2 declarations

Creating constraints

3 declarations

Manipulating evidence bindings

2 declarations