@@ -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 )
@@ -627,14 +633,14 @@ buildInfoFieldGrammar =
627633 <*> monoidalFieldAla " pkgconfig-depends" (alaList CommaFSep ) L. pkgconfigDepends
628634 <*> monoidalFieldAla " frameworks" (alaList' FSep RelativePathNT ) L. frameworks
629635 <*> monoidalFieldAla " extra-framework-dirs" (alaList' FSep SymbolicPathNT ) L. extraFrameworkDirs
630- <*> monoidalFieldAla " asm-sources" (alaList' VCat SymbolicPathNT ) L. asmSources
636+ <*> monoidalFieldAla " asm-sources" formatExtraSources L. asmSources
631637 ^^^ availableSince CabalSpecV3_0 []
632- <*> monoidalFieldAla " cmm-sources" (alaList' VCat SymbolicPathNT ) L. cmmSources
638+ <*> monoidalFieldAla " cmm-sources" formatExtraSources L. cmmSources
633639 ^^^ availableSince CabalSpecV3_0 []
634- <*> monoidalFieldAla " c-sources" (alaList' VCat SymbolicPathNT ) L. cSources
635- <*> monoidalFieldAla " cxx-sources" (alaList' VCat SymbolicPathNT ) L. cxxSources
640+ <*> monoidalFieldAla " c-sources" formatExtraSources L. cSources
641+ <*> monoidalFieldAla " cxx-sources" formatExtraSources L. cxxSources
636642 ^^^ availableSince CabalSpecV2_2 []
637- <*> monoidalFieldAla " js-sources" (alaList' VCat SymbolicPathNT ) L. jsSources
643+ <*> monoidalFieldAla " js-sources" formatExtraSources L. jsSources
638644 <*> hsSourceDirsGrammar
639645 <*> monoidalFieldAla " other-modules" formatOtherModules L. otherModules
640646 <*> monoidalFieldAla " virtual-modules" (alaList' VCat MQuoted ) L. virtualModules
@@ -834,6 +840,9 @@ formatOtherExtensions = alaList' FSep MQuoted
834840formatOtherModules :: [ModuleName ] -> List VCat (MQuoted ModuleName ) ModuleName
835841formatOtherModules = alaList' VCat MQuoted
836842
843+ formatExtraSources :: [ExtraSource ] -> List VCat (Identity ExtraSource ) ExtraSource
844+ formatExtraSources = alaList' VCat Identity
845+
837846-------------------------------------------------------------------------------
838847-- newtypes
839848-------------------------------------------------------------------------------
0 commit comments