Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bc79b5a

Browse files
committedMay 25, 2024·
Fix #10042 Don't recommend deprecated/removed 'extensions:' field
1 parent a6b99b8 commit bc79b5a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
 

‎Cabal/src/Distribution/PackageDescription/Check/Target.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -860,14 +860,14 @@ checkGHCOptions title t opts = do
860860
let ghcNoRts = rmRtsOpts opts
861861
checkAlternatives
862862
title
863-
"extensions"
863+
"default-extensions"
864864
[ (flag, prettyShow extension)
865865
| flag <- ghcNoRts
866866
, Just extension <- [ghcExtension flag]
867867
]
868868
checkAlternatives
869869
title
870-
"extensions"
870+
"default-extensions"
871871
[ (flag, extension)
872872
| flag@('-' : 'X' : extension) <- ghcNoRts
873873
]

‎changelog.d/issue-10042

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
synopsis: Don't recommend deprecated/removed 'extensions:' field
2+
packages: Cabal
3+
issues: #10042
4+
5+
description: {
6+
When applicable, field 'default-extensions:' is recommended (rather than
7+
deprecated/removed 'extensions:').
8+
}

0 commit comments

Comments
 (0)
Please sign in to comment.