[Haskell] Re: lhs2TeX-friendly emacs mode?

Stefan Monnier monnier at iro.umontreal.ca
Sun Apr 16 10:14:42 EDT 2006

> Is there a Haskell emacs mode that works well with lhs2TeX?  Specifically
> (a) treating \begin{spec} ... \end{spec} like \begin{code}... \end{code},
> and (b) coloring inline code ("|<expr>|)" and maybe inline verbatim
> ("@<expr>@") as Haskell rather than LaTeX code.

It'd be trivial to patch haskell-mode so that it can understand

For |<expr>| and @<expr>@, it may be a bit tricker depending on the details
(e.g. what about other | or @ chars appearing the TeX code or in Haskell
code: do they need to be quoted, if so how? Also: can <expr> span
several lines?  If yes, is it common or is it rare?).


More information about the Haskell mailing list