@@ -53,7 +53,6 @@ import Distribution.PackageDescription.FieldGrammar
5353import Distribution.Pretty
5454import Distribution.Utils.Generic (writeFileAtomic , writeUTF8File )
5555
56- import qualified Distribution.PackageDescription.FieldGrammar as FG
5756import qualified Distribution.Types.BuildInfo.Lens as L
5857import qualified Distribution.Types.SetupBuildInfo.Lens as L
5958
@@ -150,7 +149,7 @@ ppCondLibrary v (Just condTree) =
150149ppCondSubLibraries :: CabalSpecVersion -> [(UnqualComponentName , CondTree ConfVar [Dependency ] Library )] -> [PrettyField () ]
151150ppCondSubLibraries v libs =
152151 [ PrettySection () " library" [pretty n] $
153- ppCondTree2 v (libraryFieldGrammar ( LSubLibName n) ) condTree
152+ ppCondTree2 v (libraryFieldGrammar $ LSubLibName n) condTree
154153 | (n, condTree) <- libs
155154 ]
156155
@@ -178,7 +177,7 @@ ppCondTestSuites v suites =
178177ppCondBenchmarks :: CabalSpecVersion -> [(UnqualComponentName , CondTree ConfVar [Dependency ] Benchmark )] -> [PrettyField () ]
179178ppCondBenchmarks v suites =
180179 [ PrettySection () " benchmark" [pretty n] $
181- ppCondTree2 v benchmarkFieldGrammar (fmap FG. unvalidateBenchmark condTree)
180+ ppCondTree2 v benchmarkFieldGrammar (fmap unvalidateBenchmark condTree)
182181 | (n, condTree) <- suites
183182 ]
184183
@@ -227,7 +226,7 @@ showPackageDescription = showGenericPackageDescription . pdToGpd
227226
228227pdToGpd :: PackageDescription -> GenericPackageDescription
229228pdToGpd pd =
230- emptyGenericPackageDescription
229+ GenericPackageDescription
231230 { packageDescription = pd
232231 , gpdScannedVersion = Nothing
233232 , genPackageFlags = []
0 commit comments