Skip to content

Commit 6139ef2

Browse files
committed
Add a test for running ghc in a nix-shell
1 parent cbab613 commit 6139ef2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,12 @@ printf "*** Checking that a nix-shell works for cabal...\n" >& 2
2424
nix-shell --pure ./default.nix \
2525
-A with-packages.test-shell \
2626
--run 'echo CABAL_CONFIG=$CABAL_CONFIG && cd with-packages && cabal new-build'
27+
echo >& 2
28+
29+
printf "*** Checking that a nix-shell works for runghc...\n" >& 2
30+
nix-shell --pure ./default.nix \
31+
-A with-packages.test-shell \
32+
--run 'runghc with-packages/Point.hs'
33+
echo >& 2
2734

2835
printf "\n*** Finished successfully\n" >& 2

0 commit comments

Comments
 (0)