@@ -174,6 +174,7 @@ libraryFieldGrammar
174174 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
175175 , c (List CommaVCat (Identity Dependency ) Dependency )
176176 , c (List CommaVCat (Identity Mixin ) Mixin )
177+ , c (List VCat (Identity ExtraSource ) ExtraSource )
177178 , c (List CommaVCat (Identity ModuleReexport ) ModuleReexport )
178179 , c (List FSep (MQuoted Extension ) Extension )
179180 , c (List FSep (MQuoted Language ) Language )
@@ -224,6 +225,7 @@ foreignLibFieldGrammar
224225 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
225226 , c (List CommaVCat (Identity Dependency ) Dependency )
226227 , c (List CommaVCat (Identity Mixin ) Mixin )
228+ , c (List VCat (Identity ExtraSource ) ExtraSource )
227229 , c (List FSep (Identity ForeignLibOption ) ForeignLibOption )
228230 , c (List FSep (MQuoted Extension ) Extension )
229231 , c (List FSep (MQuoted Language ) Language )
@@ -263,6 +265,7 @@ executableFieldGrammar
263265 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
264266 , c (List CommaVCat (Identity Dependency ) Dependency )
265267 , c (List CommaVCat (Identity Mixin ) Mixin )
268+ , c (List VCat (Identity ExtraSource ) ExtraSource )
266269 , c (List FSep (MQuoted Extension ) Extension )
267270 , c (List FSep (MQuoted Language ) Language )
268271 , c (List FSep Token String )
@@ -339,6 +342,7 @@ testSuiteFieldGrammar
339342 , c (List CommaFSep Token String )
340343 , c (List CommaVCat (Identity Dependency ) Dependency )
341344 , c (List CommaVCat (Identity Mixin ) Mixin )
345+ , c (List VCat (Identity ExtraSource ) ExtraSource )
342346 , c (List FSep (MQuoted Extension ) Extension )
343347 , c (List FSep (MQuoted Language ) Language )
344348 , c (List FSep Token String )
@@ -483,6 +487,7 @@ benchmarkFieldGrammar
483487 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
484488 , c (List CommaVCat (Identity Dependency ) Dependency )
485489 , c (List CommaVCat (Identity Mixin ) Mixin )
490+ , c (List VCat (Identity ExtraSource ) ExtraSource )
486491 , c (List FSep (MQuoted Extension ) Extension )
487492 , c (List FSep (MQuoted Language ) Language )
488493 , c (List FSep Token String )
@@ -585,6 +590,7 @@ buildInfoFieldGrammar
585590 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
586591 , c (List CommaVCat (Identity Dependency ) Dependency )
587592 , c (List CommaVCat (Identity Mixin ) Mixin )
593+ , c (List VCat (Identity ExtraSource ) ExtraSource )
588594 , c (List FSep (MQuoted Extension ) Extension )
589595 , c (List FSep (MQuoted Language ) Language )
590596 , c (List FSep Token String )
@@ -629,14 +635,14 @@ buildInfoFieldGrammar =
629635 <*> monoidalFieldAla " pkgconfig-depends" (alaList CommaFSep ) L. pkgconfigDepends
630636 <*> monoidalFieldAla " frameworks" (alaList' FSep RelativePathNT ) L. frameworks
631637 <*> monoidalFieldAla " extra-framework-dirs" (alaList' FSep SymbolicPathNT ) L. extraFrameworkDirs
632- <*> monoidalFieldAla " asm-sources" (alaList' VCat SymbolicPathNT ) L. asmSources
638+ <*> monoidalFieldAla " asm-sources" formatExtraSources L. asmSources
633639 ^^^ availableSince CabalSpecV3_0 []
634- <*> monoidalFieldAla " cmm-sources" (alaList' VCat SymbolicPathNT ) L. cmmSources
640+ <*> monoidalFieldAla " cmm-sources" formatExtraSources L. cmmSources
635641 ^^^ availableSince CabalSpecV3_0 []
636- <*> monoidalFieldAla " c-sources" (alaList' VCat SymbolicPathNT ) L. cSources
637- <*> monoidalFieldAla " cxx-sources" (alaList' VCat SymbolicPathNT ) L. cxxSources
642+ <*> monoidalFieldAla " c-sources" formatExtraSources L. cSources
643+ <*> monoidalFieldAla " cxx-sources" formatExtraSources L. cxxSources
638644 ^^^ availableSince CabalSpecV2_2 []
639- <*> monoidalFieldAla " js-sources" (alaList' VCat SymbolicPathNT ) L. jsSources
645+ <*> monoidalFieldAla " js-sources" formatExtraSources L. jsSources
640646 <*> hsSourceDirsGrammar
641647 <*> monoidalFieldAla " other-modules" formatOtherModules L. otherModules
642648 <*> monoidalFieldAla " virtual-modules" (alaList' VCat MQuoted ) L. virtualModules
@@ -836,6 +842,9 @@ formatOtherExtensions = alaList' FSep MQuoted
836842formatOtherModules :: [ModuleName ] -> List VCat (MQuoted ModuleName ) ModuleName
837843formatOtherModules = alaList' VCat MQuoted
838844
845+ formatExtraSources :: [ExtraSource ] -> List VCat (Identity ExtraSource ) ExtraSource
846+ formatExtraSources = alaList' VCat Identity
847+
839848-------------------------------------------------------------------------------
840849-- newtypes
841850-------------------------------------------------------------------------------
0 commit comments