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.Trace

Contents
  1. Trace
  2. Warnings in the parser
Synopsis
  • PackageAgda-2.8.0.2
  • Exports8
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTrace.hs

Trace

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

Methods

Instances7MonadTrace, …
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.

Warnings in the parser

valuerunPM :: PM a -> TCM a

Running the Parse monad, raising parser warnings.