haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

Fixity resolution not performed inside tuple sections #434

Open ndmitchell opened 5 years ago

ndmitchell commented 5 years ago

The code for leafFix misses a case for TupleSection, see https://github.com/haskell-suite/haskell-src-exts/blob/eee74278d680706904b36863cddde5d1b8c2815d/src/Language/Haskell/Exts/Fixity.hs#L382-L426. As a result, fixity resolution is not performed inside tuple sections, which causes upstream issues such as https://github.com/ndmitchell/hlint/issues/673 found by @cocreature