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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleskylighting-core-0.15Haskell2010

Skylighting.Loader

This module provides routines to load syntax definitions from disk files.

  • 3 values

Loads all syntax definitions from the specified directory by looking for files with an ".xml" extension. This function assumes such files are Kate XML syntax definitions, so XML files with unexpected contents will cause a parsing error returned as a Left and syntax parsing will be aborted.

valueloadValidSyntaxesFromDir :: FilePath -> IO (LoadErrMap, SyntaxMap)
#

Loads all valid syntax definitions from the specified directory by looking for files with an ".xml" extension. Any files that are not valid Kate XML syntax definitions will have an entry in the resulting error map; the returned SyntaxMap will be made up of only the files that could successfully be loaded and parsed.