File tree Expand file tree Collapse file tree 6 files changed +37
-3
lines changed
Cabal/src/Distribution/PackageDescription
cabal-testsuite/PackageTests/Check/ConfiguredPackage/Fields/KnownTypeAbstractions Expand file tree Collapse file tree 6 files changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -1193,9 +1193,10 @@ checkFields pkg =
1193
1193
unknownCompilers = [ name | (OtherCompiler name, _) <- testedWith pkg ]
1194
1194
unknownLanguages = [ name | bi <- allBuildInfo pkg
1195
1195
, UnknownLanguage name <- allLanguages bi ]
1196
- unknownExtensions = [ name | bi <- allBuildInfo pkg
1197
- , UnknownExtension name <- allExtensions bi
1198
- , name `notElem` map prettyShow knownLanguages ]
1196
+ unknownExtensions = filter (/= " TypeAbstractions" )
1197
+ [ name | bi <- allBuildInfo pkg
1198
+ , UnknownExtension name <- allExtensions bi
1199
+ , name `notElem` map prettyShow knownLanguages ]
1199
1200
ourDeprecatedExtensions = nub $ catMaybes
1200
1201
[ find ((== ext) . fst ) deprecatedExtensions
1201
1202
| bi <- allBuildInfo pkg
Original file line number Diff line number Diff line change
1
+ # cabal check
2
+ No errors or warnings could be found in the package.
Original file line number Diff line number Diff line change
1
+ import Test.Cabal.Prelude
2
+
3
+ -- Uknown extension, exception for TypeAbstractions, see #9496
4
+ main = cabalTest $
5
+ cabal " check" []
Original file line number Diff line number Diff line change
1
+ cabal-version : 3.0
2
+ name : pkg
3
+ synopsis : synopsis
4
+ description : description
5
+ version : 0
6
+ category : example
7
+
8
+ license : GPL-3.0-or-later
9
+
10
+ library
11
+ exposed-modules : Module
12
+ default-language : Haskell2010
13
+ default-extensions : TypeAbstractions
Original file line number Diff line number Diff line change
1
+ synopsis: Make `check` recognise `TypeAbstractions`
2
+ packages: cabal-install
3
+ prs: #9503
4
+ issues: #9496
5
+
6
+ description: {
7
+
8
+ - `cabal check` will not complain about “Unknown extension” when
9
+ finding `TypeAbstractions`.
10
+
11
+ }
Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ syn keyword cabalExtension contained
267
267
\ TraditionalRecordSyntax
268
268
\ TransformListComp
269
269
\ TupleSections
270
+ \ TypeAbstractions
270
271
\ TypeApplications
271
272
\ TypeData
272
273
\ TypeFamilies
@@ -405,6 +406,7 @@ syn keyword cabalExtension contained
405
406
\ NoTraditionalRecordSyntax
406
407
\ NoTransformListComp
407
408
\ NoTupleSections
409
+ \ NoTypeAbstractions
408
410
\ NoTypeApplications
409
411
\ NoTypeFamilies
410
412
\ NoTypeFamilyDependencies
You can’t perform that action at this time.
0 commit comments