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

ModuleAgda-2.8.0.2Haskell2010

Agda.TypeChecking.Monad.State

Lenses for TCState and more.

Contents
  1. Lens for persistent states and its fields
  2. Scope
  3. Signature
  4. Lens for stSignature and stImports
  5. Modifiers for rewrite rules
  6. modify methods for the signature
  7. Modifiers for parts of the signature
  8. File identification
  9. Top level module
  10. Backends and foreign code
  11. Interaction output callback
  12. Pattern synonyms
  13. Instance definitions
Synopsis
  • PackageAgda-2.8.0.2
  • Exports75
  • LanguageHaskell2010
  • LicenceMIT
  • SourceState.hs
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

Scope

Signature

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

Top level module

Backends and foreign code

Interaction output callback

Pattern synonyms

Instance definitions

Orphan instances

1 instance