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.Syntax.Parser.Literate

Preprocessors for literate code formats.

  • 4 types
  • 11 values
  • PackageAgda-2.7.0.1
  • Exports15
  • LanguageHaskell2010
  • LicenceMIT
  • SourceLiterate.hs

List of valid extensions for literate Agda files, and their corresponding preprocessors.

If you add new extensions, remember to update test/Utils.hs so that test cases ending in the new extensions are found.

valueilliterate :: [Layer] -> String
#

Blanks the non-code parts of a given file, preserving positions of characters corresponding to code. This way, there is a direct correspondence between source positions and positions in the processed result.

typetype Processor = Position -> String -> [Layer]
#

Type of a literate preprocessor: Invariants:

f : Processor

proposition> f pos s /= []

proposition> f pos s >>= layerContent == s