Add option to remove pragmas implied by the language variant#455
Add option to remove pragmas implied by the language variant#455mrBliss wants to merge 1 commit intohaskell:mainfrom
Conversation
For example, by setting `language_variant` to `GHC2021`, all the extensions implied by the GHC2021 language variant will be removed as redundant language pragmas.
| # - Haskell98 | ||
| # | ||
| # Default: Haskell2010 | ||
| language_variant: Haskell2010 |
There was a problem hiding this comment.
-
I was considering whether there should be a way to retain the former behaviour of
remove_redundant: true, i.e., just removeBangPatternsandViewPatternswhen unused in the module. I decided not to add it because I couldn't think of a good way to make it fit thelanguage_variantoption (which language variant would that option be?) and the usefulness of the former behaviour is rather limited, IMHO. -
What about projects that are mix of different language variants? The mix would be across components (library vs. testsuite, etc.)
|
This would be great to have! Could we also parse this setting out of the |
For example, by setting
language_varianttoGHC2021, all the extensions implied by the GHC2021 language variant will be removed as redundant language pragmas.