@@ -175,6 +175,7 @@ libraryFieldGrammar
175175     , c  (List  CommaFSep  (Identity  PkgconfigDependency ) PkgconfigDependency )
176176     , c  (List  CommaVCat  (Identity  Dependency ) Dependency )
177177     , c  (List  CommaVCat  (Identity  Mixin ) Mixin )
178+      , c  (List  VCat  (Identity  ExtraSource ) ExtraSource )
178179     , c  (List  CommaVCat  (Identity  ModuleReexport ) ModuleReexport )
179180     , c  (List  FSep  (MQuoted  Extension ) Extension )
180181     , c  (List  FSep  (MQuoted  Language ) Language )
@@ -225,6 +226,7 @@ foreignLibFieldGrammar
225226     , c  (List  CommaFSep  (Identity  PkgconfigDependency ) PkgconfigDependency )
226227     , c  (List  CommaVCat  (Identity  Dependency ) Dependency )
227228     , c  (List  CommaVCat  (Identity  Mixin ) Mixin )
229+      , c  (List  VCat  (Identity  ExtraSource ) ExtraSource )
228230     , c  (List  FSep  (Identity  ForeignLibOption ) ForeignLibOption )
229231     , c  (List  FSep  (MQuoted  Extension ) Extension )
230232     , c  (List  FSep  (MQuoted  Language ) Language )
@@ -264,6 +266,7 @@ executableFieldGrammar
264266     , c  (List  CommaFSep  (Identity  PkgconfigDependency ) PkgconfigDependency )
265267     , c  (List  CommaVCat  (Identity  Dependency ) Dependency )
266268     , c  (List  CommaVCat  (Identity  Mixin ) Mixin )
269+      , c  (List  VCat  (Identity  ExtraSource ) ExtraSource )
267270     , c  (List  FSep  (MQuoted  Extension ) Extension )
268271     , c  (List  FSep  (MQuoted  Language ) Language )
269272     , c  (List  FSep  FilePathNT  String  )
@@ -336,6 +339,7 @@ testSuiteFieldGrammar
336339     , c  (List  CommaFSep  Token  String  )
337340     , c  (List  CommaVCat  (Identity  Dependency ) Dependency )
338341     , c  (List  CommaVCat  (Identity  Mixin ) Mixin )
342+      , c  (List  VCat  (Identity  ExtraSource ) ExtraSource )
339343     , c  (List  FSep  (MQuoted  Extension ) Extension )
340344     , c  (List  FSep  (MQuoted  Language ) Language )
341345     , c  (List  FSep  FilePathNT  String  )
@@ -479,6 +483,7 @@ benchmarkFieldGrammar
479483     , c  (List  CommaFSep  (Identity  PkgconfigDependency ) PkgconfigDependency )
480484     , c  (List  CommaVCat  (Identity  Dependency ) Dependency )
481485     , c  (List  CommaVCat  (Identity  Mixin ) Mixin )
486+      , c  (List  VCat  (Identity  ExtraSource ) ExtraSource )
482487     , c  (List  FSep  (MQuoted  Extension ) Extension )
483488     , c  (List  FSep  (MQuoted  Language ) Language )
484489     , c  (List  FSep  FilePathNT  String  )
@@ -577,6 +582,7 @@ buildInfoFieldGrammar
577582     , c  (List  CommaFSep  (Identity  PkgconfigDependency ) PkgconfigDependency )
578583     , c  (List  CommaVCat  (Identity  Dependency ) Dependency )
579584     , c  (List  CommaVCat  (Identity  Mixin ) Mixin )
585+      , c  (List  VCat  (Identity  ExtraSource ) ExtraSource )
580586     , c  (List  FSep  (MQuoted  Extension ) Extension )
581587     , c  (List  FSep  (MQuoted  Language ) Language )
582588     , c  (List  FSep  FilePathNT  String  )
@@ -619,14 +625,14 @@ buildInfoFieldGrammar =
619625    <*>  monoidalFieldAla " pkgconfig-depends"   (alaList CommaFSep ) L. pkgconfigDepends
620626    <*>  monoidalFieldAla " frameworks"   (alaList' FSep  Token ) L. frameworks
621627    <*>  monoidalFieldAla " extra-framework-dirs"   (alaList' FSep  FilePathNT ) L. extraFrameworkDirs
622-     <*>  monoidalFieldAla " asm-sources"   (alaList'  VCat   FilePathNT )  L. asmSources
628+     <*>  monoidalFieldAla " asm-sources"   formatExtraSources  L. asmSources
623629      ^^^  availableSince CabalSpecV3_0  [] 
624-     <*>  monoidalFieldAla " cmm-sources"   (alaList'  VCat   FilePathNT )  L. cmmSources
630+     <*>  monoidalFieldAla " cmm-sources"   formatExtraSources  L. cmmSources
625631      ^^^  availableSince CabalSpecV3_0  [] 
626-     <*>  monoidalFieldAla " c-sources"   (alaList'  VCat   FilePathNT )  L. cSources
627-     <*>  monoidalFieldAla " cxx-sources"   (alaList'  VCat   FilePathNT )  L. cxxSources
632+     <*>  monoidalFieldAla " c-sources"   formatExtraSources  L. cSources
633+     <*>  monoidalFieldAla " cxx-sources"   formatExtraSources  L. cxxSources
628634      ^^^  availableSince CabalSpecV2_2  [] 
629-     <*>  monoidalFieldAla " js-sources"   (alaList'  VCat   FilePathNT )  L. jsSources
635+     <*>  monoidalFieldAla " js-sources"   formatExtraSources  L. jsSources
630636    <*>  hsSourceDirsGrammar
631637    <*>  monoidalFieldAla " other-modules"   formatOtherModules L. otherModules
632638    <*>  monoidalFieldAla " virtual-modules"   (alaList' VCat  MQuoted ) L. virtualModules
@@ -812,6 +818,9 @@ formatOtherExtensions = alaList' FSep MQuoted
812818formatOtherModules  ::  [ModuleName ] ->  List  VCat  (MQuoted  ModuleName ) ModuleName 
813819formatOtherModules =  alaList' VCat  MQuoted 
814820
821+ formatExtraSources  ::  [ExtraSource ] ->  List  VCat  (Identity  ExtraSource ) ExtraSource 
822+ formatExtraSources =  alaList' VCat  Identity 
823+ 
815824------------------------------------------------------------------------------- 
816825--  newtypes
817826------------------------------------------------------------------------------- 
0 commit comments