diff options
| author | Daniel Gröber <dxld@darkboxed.org> | 2018-11-18 12:37:14 +0100 | 
|---|---|---|
| committer | Daniel Gröber <dxld@darkboxed.org> | 2019-01-22 03:06:51 +0100 | 
| commit | 1d9d69b076e101ee67842b4e82423e8d57559544 (patch) | |
| tree | 8dbf5569edfd8c80be01d348cf78e9a0e0d3ac95 /tests | |
| parent | cea2d0fa80adc6720492fca8b84ac65ec302c6dd (diff) | |
Allow v2-build projects to not have a cabal.project file
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/GhcSession.hs | 4 | 
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/GhcSession.hs b/tests/GhcSession.hs index 91845d4..f582242 100644 --- a/tests/GhcSession.hs +++ b/tests/GhcSession.hs @@ -58,7 +58,6 @@ data CabalCommands pt =    CabalCommands      { cabalDistDir          :: FilePath -> DistDir pt      , cabalProjDir          :: FilePath -> ProjLoc pt -    , cabalAddProject       :: FilePath -> IO ()      , cabalConfigureCommand :: String      , cabalBuildCommand     :: String      , cabalSdistCommand     :: String @@ -68,7 +67,6 @@ oldBuild :: CabalCommands 'V1  oldBuild = CabalCommands      { cabalDistDir          = \d -> DistDirV1 (d </> "dist")      , cabalProjDir          = \cf -> ProjLocCabalFile cf -    , cabalAddProject       = \_ -> return ()      , cabalConfigureCommand = "configure"      , cabalBuildCommand     = "build"      , cabalSdistCommand     = "sdist" @@ -78,7 +76,6 @@ newBuild :: CabalCommands 'V2  newBuild = CabalCommands      { cabalDistDir          = \d -> DistDirV2 (d </> "dist-newstyle")      , cabalProjDir          = \cf -> ProjLocV2Dir (takeDirectory cf) -    , cabalAddProject       = addCabalProject      , cabalConfigureCommand = "new-configure"      , cabalBuildCommand     = "new-build"      , cabalSdistCommand     = "sdist" @@ -123,7 +120,6 @@ runTest c topdir projdir cabal_file act = do      run "cabal" [ cabalSdistCommand c, "-v0", "--output-dir", dir ]      setCurrentDirectory dir -    cabalAddProject c $ dir      run "cabal" [ cabalConfigureCommand c ]      act c $ dir </> takeFileName cabal_file  | 
