Skip to content

Commit

Permalink
Fix #10042 Don't recommend deprecated/removed 'extensions:' field
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed May 22, 2024
1 parent 93f4c0d commit 6ad7eef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cabal/src/Distribution/PackageDescription/Check/Target.hs
Original file line number Diff line number Diff line change
Expand Up @@ -859,14 +859,14 @@ checkGHCOptions title t opts = do
let ghcNoRts = rmRtsOpts opts
checkAlternatives
title
"extensions"
"default-extensions"
[ (flag, prettyShow extension)
| flag <- ghcNoRts
, Just extension <- [ghcExtension flag]
]
checkAlternatives
title
"extensions"
"default-extensions"
[ (flag, extension)
| flag@('-' : 'X' : extension) <- ghcNoRts
]
Expand Down
8 changes: 8 additions & 0 deletions changelog.d/issue-10042
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
synopsis: Don't recommend deprecated/removed 'extensions:' field
packages: Cabal
issues: #10042

description: {
When applicable, field 'default-extensions:' is recommended (rather than
deprecated/removed 'extensions:').
}

0 comments on commit 6ad7eef

Please sign in to comment.