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

Moduletexmath-0.12.8.9Haskell2010

Text.TeXMath.Readers.TeX.Macros

Functions for parsing LaTeX macro definitions and applying macros to LateX expressions.

  • 1 type
  • 3 values
  • Packagetexmath-0.12.8.9
  • Exports4
  • LanguageHaskell2010
  • LicenceGPL-2.0-only
  • SourceMacros.hs
datadata Macro
#
Instances1Show
  • Show MacroDefined in texmath-0.12.8.9 · Text.TeXMath.Readers.TeX.Macros
valueparseMacroDefinitions :: Text -> ([Macro], Text)
#

Parses a string for a list of macro definitions, optionally separated and ended by spaces and TeX comments. Returns the list of macros (which may be empty) and the unparsed portion of the input string.

valueapplyMacros :: [Macro] -> Text -> Text
#

Applies a list of macros to a string recursively until a fixed point is reached. If there are several macros in the list with the same name, earlier ones will shadow later ones.