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

  • PackageAgda-2.8.0.2
  • Exports75
  • LanguageHaskell2010
  • LicenceMIT
  • SourceState.hs
valueresetState :: TCM ()
#

Resets the non-persistent part of the type checking state.

valueresetAllState :: TCM ()
#

Resets all of the type checking state.

Keep only the session state (backend information, Benchmark, file ids).

valuefreshTCM :: TCM a -> TCM (Either TCErr a)
#

A fresh TCM instance.

The computation is run in a fresh state, with the exception that the persistent state is preserved. If the computation changes the state, then these changes are ignored, except for changes to the persistent state. (Changes to the persistent state are also ignored if errors other than type errors or IO exceptions are encountered.)

Lens for persistent states and its fields

4 declarations

Scope

12 declarations
valuelocalScope :: TCM a -> TCM a
#

Discard any changes to the scope by a computation.

Signature

0 declarations

Lens for stSignature and stImports

Update a possibly imported definition. Warning: changes made to imported definitions (during type checking) will not persist outside the current module. This function is currently used to update the compiled representation of a function during compilation.

Modifiers for rewrite rules

modify methods for the signature

Modifiers for parts of the signature

File identification

4 declarations

Top level module

5 declarations

Backends and foreign code

4 declarations

Interaction output callback

3 declarations

Pattern synonyms

7 declarations

Instance definitions

6 declarations

Orphan instances

1 instance