@@ -174,7 +174,8 @@ 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 )
177+ , c (List VCat (Identity (ExtraSource Pkg )) (ExtraSource Pkg ))
178+ , c (List VCat (Identity (ExtraSource Build )) (ExtraSource Build ))
178179 , c (List CommaVCat (Identity ModuleReexport ) ModuleReexport )
179180 , c (List FSep (MQuoted Extension ) Extension )
180181 , c (List FSep (MQuoted Language ) Language )
@@ -225,7 +226,8 @@ foreignLibFieldGrammar
225226 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
226227 , c (List CommaVCat (Identity Dependency ) Dependency )
227228 , c (List CommaVCat (Identity Mixin ) Mixin )
228- , c (List VCat (Identity ExtraSource ) ExtraSource )
229+ , c (List VCat (Identity (ExtraSource Pkg )) (ExtraSource Pkg ))
230+ , c (List VCat (Identity (ExtraSource Build )) (ExtraSource Build ))
229231 , c (List FSep (Identity ForeignLibOption ) ForeignLibOption )
230232 , c (List FSep (MQuoted Extension ) Extension )
231233 , c (List FSep (MQuoted Language ) Language )
@@ -265,7 +267,8 @@ executableFieldGrammar
265267 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
266268 , c (List CommaVCat (Identity Dependency ) Dependency )
267269 , c (List CommaVCat (Identity Mixin ) Mixin )
268- , c (List VCat (Identity ExtraSource ) ExtraSource )
270+ , c (List VCat (Identity (ExtraSource Pkg )) (ExtraSource Pkg ))
271+ , c (List VCat (Identity (ExtraSource Build )) (ExtraSource Build ))
269272 , c (List FSep (MQuoted Extension ) Extension )
270273 , c (List FSep (MQuoted Language ) Language )
271274 , c (List FSep Token String )
@@ -342,7 +345,8 @@ testSuiteFieldGrammar
342345 , c (List CommaFSep Token String )
343346 , c (List CommaVCat (Identity Dependency ) Dependency )
344347 , c (List CommaVCat (Identity Mixin ) Mixin )
345- , c (List VCat (Identity ExtraSource ) ExtraSource )
348+ , c (List VCat (Identity (ExtraSource Pkg )) (ExtraSource Pkg ))
349+ , c (List VCat (Identity (ExtraSource Build )) (ExtraSource Build ))
346350 , c (List FSep (MQuoted Extension ) Extension )
347351 , c (List FSep (MQuoted Language ) Language )
348352 , c (List FSep Token String )
@@ -487,7 +491,8 @@ benchmarkFieldGrammar
487491 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
488492 , c (List CommaVCat (Identity Dependency ) Dependency )
489493 , c (List CommaVCat (Identity Mixin ) Mixin )
490- , c (List VCat (Identity ExtraSource ) ExtraSource )
494+ , c (List VCat (Identity (ExtraSource Pkg )) (ExtraSource Pkg ))
495+ , c (List VCat (Identity (ExtraSource Build )) (ExtraSource Build ))
491496 , c (List FSep (MQuoted Extension ) Extension )
492497 , c (List FSep (MQuoted Language ) Language )
493498 , c (List FSep Token String )
@@ -590,7 +595,8 @@ buildInfoFieldGrammar
590595 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
591596 , c (List CommaVCat (Identity Dependency ) Dependency )
592597 , c (List CommaVCat (Identity Mixin ) Mixin )
593- , c (List VCat (Identity ExtraSource ) ExtraSource )
598+ , c (List VCat (Identity (ExtraSource Pkg )) (ExtraSource Pkg ))
599+ , c (List VCat (Identity (ExtraSource Build )) (ExtraSource Build ))
594600 , c (List FSep (MQuoted Extension ) Extension )
595601 , c (List FSep (MQuoted Language ) Language )
596602 , c (List FSep Token String )
@@ -639,6 +645,8 @@ buildInfoFieldGrammar =
639645 ^^^ availableSince CabalSpecV3_0 []
640646 <*> monoidalFieldAla " cmm-sources" formatExtraSources L. cmmSources
641647 ^^^ availableSince CabalSpecV3_0 []
648+ <*> monoidalFieldAla " autogen-cmm-sources" formatExtraSources L. autogenCmmSources
649+ -- FIXME ^^^ availableSince CabalSpecV3_0 []
642650 <*> monoidalFieldAla " c-sources" formatExtraSources L. cSources
643651 <*> monoidalFieldAla " cxx-sources" formatExtraSources L. cxxSources
644652 ^^^ availableSince CabalSpecV2_2 []
@@ -842,7 +850,7 @@ formatOtherExtensions = alaList' FSep MQuoted
842850formatOtherModules :: [ModuleName ] -> List VCat (MQuoted ModuleName ) ModuleName
843851formatOtherModules = alaList' VCat MQuoted
844852
845- formatExtraSources :: [ExtraSource ] -> List VCat (Identity ExtraSource ) ExtraSource
853+ formatExtraSources :: [ExtraSource pkg ] -> List VCat (Identity ( ExtraSource pkg )) ( ExtraSource pkg )
846854formatExtraSources = alaList' VCat Identity
847855
848856-------------------------------------------------------------------------------
0 commit comments