Skip to content

Commit 99498be

Browse files
committed
Use getLocalBuildInfoM not getTestEnv
1 parent 2acae63 commit 99498be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import Test.Cabal.Prelude
2+
import Distribution.Simple.LocalBuildInfo
23

34
main = setupAndCabalTest $ withPackageDb $ do
45
skipUnlessGhcVersion ">= 8.8"
56
setup_install ["hie-local"]
6-
env <- getTestEnv
7-
shouldExist $ testLibInstallDir env </> "hie-local-0.1.0.0" </> "extra-compilation-artifacts" </> "hie" </> "HieLocal.hie"
7+
lbi <- getLocalBuildInfoM
8+
let installedLibPath = libdir $ absoluteInstallDirs (localPkgDescr lbi) lbi NoCopyDest
9+
shouldExist $ installedLibPath </> "extra-compilation-artifacts" </> "hie" </> "HieLocal.hie"

0 commit comments

Comments
 (0)