HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.TypeChecking.Monad.Trace

  • 1 class
  • 4 values
  • PackageAgda-2.7.0.1
  • Exports5
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTrace.hs

Trace

5 declarations
classclass (MonadTCEnv m, ReadTCState m) => MonadTrace (m :: Type -> Type) where
#

Methods

Instances6MonadTrace
valuesetCurrentRange :: (MonadTrace m, HasRange x) => x -> m a -> m a
#

Sets the current range (for error messages etc.) to the range of the given object, if it has a range (i.e., its range is not noRange).

valuehighlightAsTypeChecked
  1. :: MonadTrace m
  2. => Range
    rPre
  3. -> Range
    r
  4. -> m a
  5. -> m a
#

highlightAsTypeChecked rPre r m runs m and returns its result. Additionally, some code may be highlighted:

  • If r is non-empty and not a sub-range of rPre (after continuousPerLine has been applied to both): r is highlighted as being type-checked while m is running (this highlighting is removed if m completes successfully).

  • Otherwise: Highlighting is removed for rPre - r before m runs, and if m completes successfully, then rPre - r is highlighted as being type-checked.