-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Stylish Haskell: CPP parse issues #3199
Stylish Haskell: CPP parse issues #3199
Conversation
@pepeiborra Any chance |
* CPP language extension * Manually fix some files with duplication
It looks like `ExactPrint` was ignored before, but since absolute paths are used and weren't adapted it wasn't ignored afterwards.
6a09342
to
79e47a6
Compare
@andys8 thanks a lot for this fix, it is very appreciated. The pre-commit hook was contributed by @lunaticare and accepted by @Ailrun, maybe they can comment. |
My thoughts: We have some of the worst CPP code in Haskell-land, it's bad enough for contributors as it is. Having to fight CI to make stylish-haskell "parse" the CPP will make things worse. Ideally the pre-commit-hook would ignore parse errors, and leave those files untouched. Perhaps the exit code can be used to tell a parse error apart from an unformatted file? |
Change
Result
Without this change
With this change
System
stylish-haskell 0.14.2.0
Issue