Merge pull request #10493 from Sdywolf/doc-refine/repl
[cabal.git] / cabal-testsuite / PackageTests / HaddockProject / haddock-project.test.hs
blob923b1ad87047ef4db1031903e0251aab3837fd68
1 import Test.Cabal.Prelude
2 import System.Directory (doesFileExist, removeDirectory)
4 main = cabalTest . withRepo "repo" $ do
5 skipUnlessGhcVersion ">= 9.4.0"
6 env <- getTestEnv
7 let testDir = testCurrentDir env
9 cabal "haddock-project" ["all"]
10 let asyncHaddocks = "haddocks" </> "async" </> "async.haddock"
11 liftIO (doesFileExist (testDir </> asyncHaddocks))
12 >>= assertBool ("'" ++ asyncHaddocks ++ "'" ++ "should exist")