diff --git a/ghc-mod.cabal b/ghc-mod.cabal index e77cea3..ab2d1ae 100644 --- a/ghc-mod.cabal +++ b/ghc-mod.cabal @@ -85,6 +85,11 @@ Extra-Source-Files: ChangeLog test/data/file-mapping/preprocessor/*.hs test/data/file-mapping/lhs/*.lhs test/data/nice-qualification/*.hs + test/data/stack-project/new-template.cabal + test/data/stack-project/Setup.hs + test/data/stack-project/app/Main.hs + test/data/stack-project/src/Lib.hs + test/data/stack-project/test/Spec.hs Library Default-Language: Haskell2010 diff --git a/test/CabalHelperSpec.hs b/test/CabalHelperSpec.hs index fa96172..69e3814 100644 --- a/test/CabalHelperSpec.hs +++ b/test/CabalHelperSpec.hs @@ -56,12 +56,12 @@ spec = do then forM_ opts (\o -> o `shouldContain` ["-no-user-package-conf","-package-conf", cwd "test/data/cabal-project/.cabal-sandbox/"++ghcSandboxPkgDbDir bp]) else forM_ opts (\o -> o `shouldContain` ["-no-user-package-db","-package-db",cwd "test/data/cabal-project/.cabal-sandbox/"++ghcSandboxPkgDbDir bp]) - {- it "handles stack project" $ do + it "handles stack project" $ do let tdir = "test/data/stack-project" opts <- map gmcGhcOpts <$> runD' tdir getComponents let ghcOpts = head opts pkgs = pkgOptions ghcOpts - pkgs `shouldBe` ["Cabal","base","new-template"] -} + pkgs `shouldBe` ["Cabal","base","new-template"] it "extracts build dependencies" $ do let tdir = "test/data/cabal-project"