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 25, 2024
1 parent a6b99b8 commit bc79b5a
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 @@ -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
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 bc79b5a

Please sign in to comment.