Skip to content

Fix -Woperator-whitespace for consym (old 1st attempt)

Vladislav Zavialov requested to merge wip/op-ws-consym into master

Due to an oversight, the initial specification and implementation of -Woperator-whitespace focused on varsym exclusively, and completely ignored consym. This meant that expressions such as x+ y would produce a warning, while x:+ y would not. The specification was corrected in ghc-proposals pull request #404, and this patch updates the implementation accordingly.

I also took the liberty to do some refactoring, in particular related to NoLexicalNegationBit.

Regression test included.

Edited by Vladislav Zavialov

Merge request reports