Resets the non-persistent part of the type checking state.
ModuleAgda-2.7.0.1Haskell2010
Agda.TypeChecking.Monad.State
Lenses for TCState and more.
- 1 type
- 74 values
- PackageAgda-2.7.0.1
- Exports75
- LanguageHaskell2010
- LicenceMIT
- SourceState.hs
Resets all of the type checking state.
Keep only Benchmark and backend information.
Restore TCState after performing subcomputation.
In contrast to localState, the Benchmark info from the subcomputation is saved.
Same as localTCState but also returns the state in which we were just before reverting it.
Same as localTCState but keep all warnings.
Allow rolling back the state changes of a TCM computation.
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
5 declarationsLens for stAccumStatistics.
Scope
12 declarationsGet the current scope.
Set the current scope.
Modify the current scope without updating the inverse maps.
Modify the current scope.
Get a part of the current scope.
Run a computation in a modified scope.
Run a computation in a local scope.
Same as withScope, but discard the scope from the computation.
Discard any changes to the scope by a computation.
Scope error.
Debug print the scope.
Signature
0 declarationsLens 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.
Run some computation in a different signature, restore original signature.
Modifiers for rewrite rules
modify methods for the signature
Modifiers for parts of the signature
Top level module
5 declarationsTries to convert a raw top-level module name to a top-level module name.
Set the top-level module. This affects the global module id of freshly generated names.
The name of the current top-level module, if any.
Use a different top-level module for a computation. Used when generating names for imported modules.
Foreign code
1 declarationInteraction output callback
3 declarationsPattern synonyms
7 declarationsLens for stPatternSyns.
Get both local and imported pattern synonyms
Benchmark
4 declarationsLens map for Benchmark.
Lens modify for Benchmark.
Instance definitions
6 declarationsLens for stInstanceDefs.
Remove an instance from the set of unresolved instances.
Add an instance whose type is still unresolved.