Skip to content

Remove unused LANGUAGE extensions in the compiler/ directory

Hécate Moonlight requested to merge Kleidukos/ghc:linting/compiler into master

Background: #18424

This MR introduces the the lint:compiler Hadrian rule (made possible by !4109 (closed)) to remove unused LANGUAGE pragmas in the compiler code base. I tried maintain some kind of unity across the (too many) pragma declaration styles that have emerged during the last few decades.
The result is :

  • 1 pragma per line.
  • Pragmas are before module declaration and module documentation
  • Delimiters can be aligned according to the furthest
  • Pragmas are alphabetically ordered

All of these rules already exist in various combinations in the code base.
This MR only harmonises the styles that are the most prominent.

No feature change.

Edited by Hécate Moonlight

Merge request reports