on master help sign in
Merge pull request #266 from jsl/fix_build_for_cabal_1_18

Fix cabal configure in Cabal version 1.18.

commitc2e13665f6ee2638e1b549e0603df08c4a219e6a authorEvan Czaplicki <info@elm-lang.org> dateSun 22 Sep 2013, 07:18 (13 years ago) parent811594d6357e33
1 file changed−10
Setup.hs−10
Setup.hs−10
@@ -83,16 +83,6 @@ filterExe name pd = pd {
8383 executables = filter (\x -> (exeName x == name)) (executables pd)
8484 }
8585
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−
9686
9787-- Post Build
9888