trying to fix Travis CI.
This commit is contained in:
parent
25e1727971
commit
51710c38b0
@ -2,6 +2,9 @@
|
|||||||
module GhcPkgSpec where
|
module GhcPkgSpec where
|
||||||
|
|
||||||
import Language.Haskell.GhcMod.GhcPkg
|
import Language.Haskell.GhcMod.GhcPkg
|
||||||
|
#if __GLASGOW_HASKELL__ <= 706
|
||||||
|
import Language.Haskell.GhcMod.Types
|
||||||
|
#endif
|
||||||
|
|
||||||
import System.Directory
|
import System.Directory
|
||||||
import System.FilePath ((</>))
|
import System.FilePath ((</>))
|
||||||
@ -11,7 +14,7 @@ spec :: Spec
|
|||||||
spec = do
|
spec = do
|
||||||
describe "getSandboxDb" $ do
|
describe "getSandboxDb" $ do
|
||||||
-- ghc < 7.8
|
-- ghc < 7.8
|
||||||
#if !MIN_VERSION_ghc(7,8,0)
|
#if __GLASGOW_HASKELL__ <= 706
|
||||||
it "does include a sandbox with ghc < 7.8" $ do
|
it "does include a sandbox with ghc < 7.8" $ do
|
||||||
cwd <- getCurrentDirectory
|
cwd <- getCurrentDirectory
|
||||||
getPackageDbStack "test/data/" `shouldReturn` [GlobalDb, PackageDb $ cwd </> "test/data/.cabal-sandbox/i386-osx-ghc-7.6.3-packages.conf.d"]
|
getPackageDbStack "test/data/" `shouldReturn` [GlobalDb, PackageDb $ cwd </> "test/data/.cabal-sandbox/i386-osx-ghc-7.6.3-packages.conf.d"]
|
||||||
|
Loading…
Reference in New Issue
Block a user