ndmitchell / hlint

Haskell source code suggestions
Other
1.48k stars 195 forks source link

How to ban a single extension #1605

Open phadej opened 4 months ago

phadej commented 4 months ago

The documentation snippet in readme

- extensions:
  - default: false
  - name: [DeriveDataTypeable, GeneralizedNewtypeDeriving]
  - {name: CPP, within: CompatLayer}

is "everything is forbidden, except these are allowed".

is there a way to specify "everything is allowed, except these are forbidden"?

chungyc commented 3 weeks ago

I think this would be

- extensions:
  - default: true
  - {name: DisallowedExtension, within: []}