Skip to content

Commit 35d5b93

Browse files
committed
Call MoreTests.hs with Stack instead of Cabal
1 parent e8f851b commit 35d5b93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plt-test-lab1.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,11 @@ mainOpts cfFile testSuite = do
293293
copyFile (".." </> "MoreTests.hs") "MoreTests.hs"
294294
runPrgNoFail_ "sed" ["-i.bak", "-e", "s/GRAMMAR/" ++ grammar ++ "/g"] "MoreTests.hs"
295295

296-
-- Run MoreTests via cabal rather than ghc (Andreas, 2022-11-21).
296+
-- Run MoreTests via Stack rather than ghc (Andreas, 2022-11-21, 2024-11-04).
297297
-- This makes sure that the HUnit package is found.
298298
copyFile (".." </> "plt-test-lab1.cabal") "plt-test-lab1.cabal"
299-
callProcess "cabal" ["exec", "--", "runghc", "MoreTests.hs"]
299+
copyFile (".." </> "stack.yaml") "stack.yaml"
300+
callProcess "stack" ["exec", "runghc", "--", "MoreTests.hs"]
300301

301302
-- #ifdef HC_OPTS
302303
-- callProcess "ghc" $ ["--make"] ++ words HC_OPTS ++ ["-o", "MoreTests", "MoreTests.hs"]

0 commit comments

Comments
 (0)