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
(cherry picked from commit dc9a7a0)
  • Loading branch information
mpilgrem authored and ulysses4ever committed Jun 7, 2024
1 parent e80632a commit 3a04b13
Show file tree
Hide file tree
Showing 2 changed files with 11 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 @@ -858,14 +858,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
9 changes: 9 additions & 0 deletions changelog.d/issue-10042
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
synopsis: Don't recommend deprecated/removed 'extensions:' field
packages: Cabal
prs: #10044
issues: #10042

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

0 comments on commit 3a04b13

Please sign in to comment.