HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.TypeChecking.Monad.Debug

  • 3 types
  • 3 classes
  • 26 values
  • PackageAgda-2.7.0.1
  • Exports32
  • LanguageHaskell2010
  • LicenceMIT
  • SourceDebug.hs
classclass (Functor m, Applicative m, Monad m) => MonadDebug (m :: Type -> Type) where
#

Methods

Instances17MonadDebug, …
classclass ReportS a where
#

Debug print some lines if the verbosity level for the given VerboseKey is at least VerboseLevel.

Note: In the presence of OverloadedStrings, just @ reportS key level "Literate string" gives an Ambiguous type variable error in GHC@. Use the legacy functions reportSLn and reportSDoc instead then.

Methods

Instances6ReportS
  • ReportS DocDefined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • ReportS StringDefined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • ReportS (TCM Doc)Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • ReportS [Doc]Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • ReportS [TCM Doc]Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • ReportS [String]Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
classclass TraceS a where
#

Debug print some lines if the verbosity level for the given VerboseKey is at least VerboseLevel.

Note: In the presence of OverloadedStrings, just @ traceS key level "Literate string" gives an Ambiguous type variable error in GHC@. Use the legacy functions traceSLn and traceSDoc instead then.

Methods

Instances6TraceS
  • TraceS DocDefined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • TraceS StringDefined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • TraceS (TCM Doc)Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • TraceS [Doc]Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • TraceS [TCM Doc]Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
  • TraceS [String]Defined in Agda-2.7.0.1 · Agda.TypeChecking.Monad.Debug
typetype Verbosity = Maybe (Trie VerboseKeyItem VerboseLevel)
#

Nothing is used if no verbosity options have been given, thus making it possible to handle the default case relatively quickly. Note that Nothing corresponds to a trie with verbosity level 1 for the empty path.