Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

literate haskell (.lhs) support missing in htfpp #80

Open
jmtd opened this issue Feb 14, 2019 · 2 comments
Open

literate haskell (.lhs) support missing in htfpp #80

jmtd opened this issue Feb 14, 2019 · 2 comments

Comments

@jmtd
Copy link
Contributor

jmtd commented Feb 14, 2019

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
Copy link
Contributor Author

jmtd commented Feb 14, 2019

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.

@skogsbaer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants