You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 28, 2023. It is now read-only.
I came to discover HaTeX when needing a LaTeX parser in Haskell. I would need source location on the AST elements and it seems like HaTeX doesn't support this.
I'm happy to implement it myself in a fork if there is interest! I would just modify the AST with a type variable which can be used to store SrcLoc records from Parsec. How much would this break?
edit: A more interesting approach would be to have two modules: Text.HaTeX.Base.Syntax.WithParm and Text.HaTeX.Base.Syntax. The former defines types like data LaTeX a = ... whereas the later re-exports type LaTex = WithParm.LaTeX (). Someone interested in just generating LaTeX code can use the simpler variant. Let me know if that makes any sense! :)