Skip to content

Commit

Permalink
Merge pull request #10044 from haskell/fix10042
Browse files Browse the repository at this point in the history
Fix #10042 Don't recommend deprecated/removed 'extensions:' field
  • Loading branch information
mergify[bot] authored May 28, 2024
2 parents 94277d1 + dc9a7a0 commit 88c81c9
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 88c81c9

Please sign in to comment.