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

No option for newlines with --cpp #17

Open
ag-eitilt opened this issue Jul 20, 2018 · 0 comments
Open

No option for newlines with --cpp #17

ag-eitilt opened this issue Jul 20, 2018 · 0 comments

Comments

@ag-eitilt
Copy link

I'd like to use the preprocessor to automate writing doctests for an Enum, and so obviously need the generated Haddock to span multiple lines. cpphs sounds like it's by far the best way to do so, with --layout. My workflow also dictates that I use cabal to start things building; because of how it constructs the ghc command, that then requires --cpp to be set. Unfortunately, doing so means that --layout gets ignored, and the Haddock gets clobbered to a single line. I feel I should note that occurs with any invocation of cpphs, not just via cabal.

That should be disappointing but not debilitating as newline replacements should work just fine, according to the documentation, but the \\n expansion never seems to work (and //n just deletes to the end of the definition). Am I missing something in how it should be invoked, or is there actually an issue?

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

1 participant