@@ -95,8 +95,6 @@ import qualified Distribution.Types.Lens as L
9595
9696packageDescriptionFieldGrammar
9797 :: ( FieldGrammar c g
98- , Applicative (g PackageDescription )
99- , Applicative (g PackageIdentifier )
10098 , c (Identity BuildType )
10199 , c (Identity PackageName )
102100 , c (Identity Version )
@@ -166,8 +164,6 @@ packageDescriptionFieldGrammar =
166164
167165libraryFieldGrammar
168166 :: ( FieldGrammar c g
169- , Applicative (g Library )
170- , Applicative (g BuildInfo )
171167 , c (Identity LibraryVisibility )
172168 , c (List CommaFSep (Identity ExeDependency ) ExeDependency )
173169 , c (List CommaFSep (Identity LegacyExeDependency ) LegacyExeDependency )
@@ -218,8 +214,6 @@ libraryFieldGrammar n =
218214
219215foreignLibFieldGrammar
220216 :: ( FieldGrammar c g
221- , Applicative (g ForeignLib )
222- , Applicative (g BuildInfo )
223217 , c (Identity ForeignLibType )
224218 , c (Identity LibVersionInfo )
225219 , c (Identity Version )
@@ -264,8 +258,6 @@ foreignLibFieldGrammar n =
264258
265259executableFieldGrammar
266260 :: ( FieldGrammar c g
267- , Applicative (g Executable )
268- , Applicative (g BuildInfo )
269261 , c (Identity ExecutableScope )
270262 , c (List CommaFSep (Identity ExeDependency ) ExeDependency )
271263 , c (List CommaFSep (Identity LegacyExeDependency ) LegacyExeDependency )
@@ -339,8 +331,6 @@ testStanzaCodeGenerators f s = fmap (\x -> s{_testStanzaCodeGenerators = x}) (f
339331
340332testSuiteFieldGrammar
341333 :: ( FieldGrammar c g
342- , Applicative (g TestSuiteStanza )
343- , Applicative (g BuildInfo )
344334 , c (Identity ModuleName )
345335 , c (Identity TestType )
346336 , c (List CommaFSep (Identity ExeDependency ) ExeDependency )
@@ -488,8 +478,6 @@ benchmarkStanzaBuildInfo f s = fmap (\x -> s{_benchmarkStanzaBuildInfo = x}) (f
488478
489479benchmarkFieldGrammar
490480 :: ( FieldGrammar c g
491- , Applicative (g BenchmarkStanza )
492- , Applicative (g BuildInfo )
493481 , c (Identity BenchmarkType )
494482 , c (Identity ModuleName )
495483 , c (List CommaFSep (Identity ExeDependency ) ExeDependency )
@@ -597,7 +585,6 @@ unvalidateBenchmark b =
597585
598586buildInfoFieldGrammar
599587 :: ( FieldGrammar c g
600- , Applicative (g BuildInfo )
601588 , c (List CommaFSep (Identity ExeDependency ) ExeDependency )
602589 , c (List CommaFSep (Identity LegacyExeDependency ) LegacyExeDependency )
603590 , c (List CommaFSep (Identity PkgconfigDependency ) PkgconfigDependency )
@@ -710,7 +697,6 @@ buildInfoFieldGrammar =
710697
711698hsSourceDirsGrammar
712699 :: ( FieldGrammar c g
713- , Applicative (g BuildInfo )
714700 , c (List FSep (SymbolicPathNT Pkg (Dir Source )) (SymbolicPath Pkg (Dir Source )))
715701 )
716702 => g BuildInfo [SymbolicPath Pkg (Dir Source )]
@@ -727,7 +713,7 @@ hsSourceDirsGrammar =
727713 wrongLens f bi = (\ fps -> set L. hsSourceDirs fps bi) <$> f []
728714
729715optionsFieldGrammar
730- :: (FieldGrammar c g , Applicative ( g BuildInfo ), c (List NoCommaFSep Token' String ))
716+ :: (FieldGrammar c g , c (List NoCommaFSep Token' String ))
731717 => g BuildInfo (PerCompilerFlavor [String ])
732718optionsFieldGrammar =
733719 PerCompilerFlavor
@@ -744,7 +730,7 @@ optionsFieldGrammar =
744730 extract flavor = L. options . lookupLens flavor
745731
746732profOptionsFieldGrammar
747- :: (FieldGrammar c g , Applicative ( g BuildInfo ), c (List NoCommaFSep Token' String ))
733+ :: (FieldGrammar c g , c (List NoCommaFSep Token' String ))
748734 => g BuildInfo (PerCompilerFlavor [String ])
749735profOptionsFieldGrammar =
750736 PerCompilerFlavor
@@ -755,7 +741,7 @@ profOptionsFieldGrammar =
755741 extract flavor = L. profOptions . lookupLens flavor
756742
757743sharedOptionsFieldGrammar
758- :: (FieldGrammar c g , Applicative ( g BuildInfo ), c (List NoCommaFSep Token' String ))
744+ :: (FieldGrammar c g , c (List NoCommaFSep Token' String ))
759745 => g BuildInfo (PerCompilerFlavor [String ])
760746sharedOptionsFieldGrammar =
761747 PerCompilerFlavor
@@ -766,7 +752,7 @@ sharedOptionsFieldGrammar =
766752 extract flavor = L. sharedOptions . lookupLens flavor
767753
768754profSharedOptionsFieldGrammar
769- :: (FieldGrammar c g , Applicative ( g BuildInfo ), c (List NoCommaFSep Token' String ))
755+ :: (FieldGrammar c g , c (List NoCommaFSep Token' String ))
770756 => g BuildInfo (PerCompilerFlavor [String ])
771757profSharedOptionsFieldGrammar =
772758 PerCompilerFlavor
@@ -789,7 +775,7 @@ lookupLens k f p@(PerCompilerFlavor ghc ghcjs)
789775-------------------------------------------------------------------------------
790776
791777flagFieldGrammar
792- :: ( FieldGrammar c g , Applicative ( g PackageFlag ))
778+ :: FieldGrammar c g
793779 => FlagName
794780 -> g PackageFlag PackageFlag
795781flagFieldGrammar name =
@@ -805,7 +791,7 @@ flagFieldGrammar name =
805791-------------------------------------------------------------------------------
806792
807793sourceRepoFieldGrammar
808- :: (FieldGrammar c g , Applicative ( g SourceRepo ), c (Identity RepoType ))
794+ :: (FieldGrammar c g , c (Identity RepoType ))
809795 => RepoKind
810796 -> g SourceRepo SourceRepo
811797sourceRepoFieldGrammar kind =
@@ -824,7 +810,7 @@ sourceRepoFieldGrammar kind =
824810-------------------------------------------------------------------------------
825811
826812setupBInfoFieldGrammar
827- :: (FieldGrammar c g , Functor ( g SetupBuildInfo ), c (List CommaVCat (Identity Dependency ) Dependency ))
813+ :: (FieldGrammar c g , c (List CommaVCat (Identity Dependency ) Dependency ))
828814 => Bool
829815 -> g SetupBuildInfo SetupBuildInfo
830816setupBInfoFieldGrammar def =
0 commit comments