Conversation
|
Why does this have to be treated specially rather than as a normal infix operator? What does GHC do here? |
That's a good question :) I'm not intimately familiar with haskell-src-exts nor GHC, so honestly I don't know for sure. Maybe if I knew why I extrapolated on haskell-src-exts's treatment for If you think that this isn't the right fix and have a suggestion for a different approach I'll gladly try implementing it. |
|
The way to tell what is the right thing to do is look at how GHC implements it in its parser. |
|
Perhaps @niklasbroberg which implemented (not in any way disagreeing with the above claim that the GHC implements it is the right thing to do, just looking for possible shortcuts instead of going into GHC's code) |
Bugfix and test for #421 and ndmitchell/hlint#559