HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Interaction.Highlighting.LaTeX.Base

Function for generating highlighted and aligned LaTeX from literate Agda source.

  • 2 types
  • 1 class
  • 3 values
  • PackageAgda-2.8.0.2
  • Exports6
  • LanguageHaskell2010
  • LicenceMIT
  • SourceBase.hs
classclass Monad m => MonadLogLaTeX (m :: Type -> Type) where
#

Log LaTeX messages using a provided action.

This could be accomplished by putting logs into the RWST output and splitting it into a WriterT, but that becomes slightly more complicated to reason about in the presence of IO exceptions.

We want the logging to be reasonably polymorphic, avoid space leaks that can occur with WriterT, and also be usable during outer phases such as directory preparation.

Methods

Instances1MonadLogLaTeX
  • MonadDebug m => MonadLogLaTeX (LogLaTeXDebugT m)Defined in Agda-2.8.0.2 · Agda.Interaction.Highlighting.LaTeX.Backend