stylish-haskell
stylish-haskell copied to clipboard
Doesn't support literate haskell
Specifically, it doesn't appear to support literate haskell in latex mode.
Is there any plan to support this?
For anyone who wants to use literate haskell (in latex mode) with stylish-haskell, I wrote this script. It works for my use case and isn't forgiving if your format isn't exactly right.
Usage: format-haskell <directory>
The tool extracts the code between \begin{code}
and \end{code}
(anchored to beginning and end of line, so no space before and after!), runs stylish-haskell on it, and then splices it back into the code sections, replacing the old code.
Use at your own risk, no guarantees that it does what you want. Always use backups/editor undo.
There are currently no plans to add this to stylish-haskell
. It's not impossible, but it would require a decent amount of work.
Just to be clear, stylish-haskell doesn't support the bird-track-style LHS either, right? These comments almost seem to indicate that they do, but not LaTeX-style. But as the title indicates, I don't think stylish-haskell supports LHS in either style.