on master help sign in
Fix cabal configure in Cabal version 1.18.
6357e33Justin Leitgeb
Setup.hs−10
@@ -83,16 +83,6 @@ filterExe name pd = pd {
83 executables = filter (\x -> (exeName x == name)) (executables pd)
83 executables = filter (\x -> (exeName x == name)) (executables pd)
84 }
84 }
85
85
86−-- It's not enough to fix the PackageDescription, we also have to fix the
87−-- LocalBuildInfo. This includes the component build order (data ComponentName)
88−-- which is horribly internal.
89−filterLBI :: String -> LocalBuildInfo -> LocalBuildInfo
90−filterLBI name lbi = lbi {
91− libraryConfig = Nothing,
92− compBuildOrder = [CExeName name],
93− executableConfigs = filter (\a -> (fst a == name)) (executableConfigs lbi)
94− }
95−
96
86
97-- Post Build
87-- Post Build
98
88