HTF icon indicating copy to clipboard operation
HTF copied to clipboard

literate haskell (.lhs) support missing in htfpp

Open jmtd opened this issue 6 years ago • 2 comments

It would be great if it were possible to use HTF with literate Haskell. I don't think it is at the moment, for at least one reason: htfpp does not appear to recognise LHS input (nor can it be told via command line option) and so does not detect the test_*/prop_* functions definitions and generates regular Haskell for _thisModulesTests etc

jmtd avatar Feb 14 '19 08:02 jmtd

Bird-style LHS is what I tried first and what doesn't work as described above: using Tex-style LHS works much better: htfpp can correctly read the input Haskell and generates a valid _thisModulesTest etc but does not wrap them in \begin{code}/\end{code}. I suspect that would be an easy feature to add for the most minimal of LHS support.

jmtd avatar Feb 14 '19 09:02 jmtd

I'm happy to accept any PR for supporting literate Haskell.

skogsbaer avatar Mar 05 '22 16:03 skogsbaer