16 Apr
2006
16 Apr
'06
2:14 p.m.
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 \begin{spec}...\end{spec}. 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?). Stefan