brittany/source
Lennart Spitzner a90550f62d Respect inline configs that happen to appear deep in AST
comments between top-level decls should be considered
for inline-config. But despite being placed between
top-level decls, occasionally they get connected
somewhere nested inside the AST of the first decl.
We fix this by extracting such comments in a
pre-processing step. The control flow was significantly
altered to allow for this;
before:
  parsing -> extract inline configs
          -> compute final config(s)
          -> split module into head/decls/comments/whitespace
          -> ... bridoc -> transformations -> printing
after:
  parsing -> split module into head/decl/comments/whitespace
          -> extract inline configs respecting comments that
             got extracted from decls in the previous step
          -> compute final config(s)
          -> ... bridoc -> transformations -> printing
2023-05-28 13:55:20 +00:00
..
executable Revert "Remove `Language.Haskell.` from module names" 2022-01-13 14:16:14 +00:00
library/Language/Haskell Respect inline configs that happen to appear deep in AST 2023-05-28 13:55:20 +00:00
test-suite Improve layout options for newtype-decls 2023-05-18 15:42:48 +00:00