@@ -21,7 +21,7 @@ defaultBuildSettings :: BuildSettings
21defaultBuildSettings = BuildSettings
21defaultBuildSettings = BuildSettings
22 { sandboxRoot = "sandbox"
22 { sandboxRoot = "sandbox"
23 , expectedFailuresBuild = defaultExpectedFailures
23 , expectedFailuresBuild = defaultExpectedFailures
24− , extraArgs = ["-fnetwork23"]
24+ , extraArgs = const ["-fnetwork23"]
25 , testWorkerThreads = 4
25 , testWorkerThreads = 4
@@ -47,15 +47,12 @@ build settings' bp = do
47 let installBuildTool tool = do
47 let installBuildTool tool = do
48 putStrLn $ "Installing build tool: " ++ tool
48 putStrLn $ "Installing build tool: " ++ tool
49 ec <- withBinaryFile "build-tools.log" WriteMode $ \handle -> do
49 ec <- withBinaryFile "build-tools.log" WriteMode $ \handle -> do
50− let args = addCabalArgs settings
50+ let args = addCabalArgs settings BSBuild
51 $ "install"
51 $ "install"
52 : ("--cabal-lib-version=" ++ libVersion)
52 : ("--cabal-lib-version=" ++ libVersion)
53 : "--build-log=logs-tools/$pkg.log"
53 : "--build-log=logs-tools/$pkg.log"
59 hPutStrLn handle ("cabal " ++ unwords (map (\s -> "'" ++ s ++ "'") args))
56 hPutStrLn handle ("cabal " ++ unwords (map (\s -> "'" ++ s ++ "'") args))
60 ph <- runCabal args handle
57 ph <- runCabal args handle
61 waitForProcess ph
58 waitForProcess ph
@@ -71,14 +68,13 @@ build settings' bp = do
72 putStrLn "Beginning Stackage build"
69 putStrLn "Beginning Stackage build"
73 ph <- withBinaryFile "build.log" WriteMode $ \handle -> do
70 ph <- withBinaryFile "build.log" WriteMode $ \handle -> do
74− let args = addCabalArgs settings
71+ let args = addCabalArgs settings BSBuild
75 $ "install"
72 $ "install"
76 : ("--cabal-lib-version=" ++ libVersion)
73 : ("--cabal-lib-version=" ++ libVersion)
77 : "--build-log=logs/$pkg.log"
74 : "--build-log=logs/$pkg.log"
81− , bpPackageList bp
77+ [ bpPackageList bp
83 hPutStrLn handle ("cabal " ++ unwords (map (\s -> "'" ++ s ++ "'") args))
79 hPutStrLn handle ("cabal " ++ unwords (map (\s -> "'" ++ s ++ "'") args))
84 runCabal args handle
80 runCabal args handle