@@ -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  )
@@ -637,6 +643,8 @@ buildInfoFieldGrammar =
637643      ^^^  availableSince CabalSpecV3_0  [] 
638644    <*>  monoidalFieldAla " cmm-sources"   formatExtraSources L. cmmSources
639645      ^^^  availableSince CabalSpecV3_0  [] 
646+     <*>  monoidalFieldAla " autogen-cmm-sources"   formatExtraSources L. autogenCmmSources
647+     --  FIXME ^^^ availableSince CabalSpecV3_0 []
640648    <*>  monoidalFieldAla " c-sources"   formatExtraSources L. cSources
641649    <*>  monoidalFieldAla " cxx-sources"   formatExtraSources L. cxxSources
642650      ^^^  availableSince CabalSpecV2_2  [] 
@@ -840,7 +848,7 @@ formatOtherExtensions = alaList' FSep MQuoted
840848formatOtherModules  ::  [ModuleName ] ->  List  VCat  (MQuoted  ModuleName ) ModuleName 
841849formatOtherModules =  alaList' VCat  MQuoted 
842850
843- formatExtraSources  ::  [ExtraSource ] ->  List  VCat  (Identity  ExtraSource )  ExtraSource 
851+ formatExtraSources  ::  [ExtraSource   pkg ] ->  List  VCat  (Identity  ( ExtraSource   pkg )) ( ExtraSource   pkg ) 
844852formatExtraSources =  alaList' VCat  Identity 
845853
846854------------------------------------------------------------------------------- 
0 commit comments