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 26, 2024
1 parent 94277d1 commit dc9a7a0
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 @@ -860,14 +860,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 dc9a7a0

Please sign in to comment.