diff options
Diffstat (limited to 'testsuite/tests/ghci/prog010/ghci.prog010.script')
-rw-r--r-- | testsuite/tests/ghci/prog010/ghci.prog010.script | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/prog010/ghci.prog010.script b/testsuite/tests/ghci/prog010/ghci.prog010.script new file mode 100644 index 0000000000..563e471a59 --- /dev/null +++ b/testsuite/tests/ghci/prog010/ghci.prog010.script @@ -0,0 +1,33 @@ +-- test for #1205 + +:l ../shell.hs +:def shell (\s -> do shell s; return "") + +:shell rm -f A.o A.hi B.o B.hi + +:load A +-- we can see both f and g (only f is exported) +:type f +:type g + +:shell $HC $HC_OPTS -fforce-recomp -c A.hs + +:load A +-- we can now see only f +:type f +:type g +-- this will tell us we need to load A interpreted +:module *A + +-- load A interpreted +:load *A +:type f +:type g + +:shell $HC $HC_OPTS -fforce-recomp -c B.hs +:load B +:module *A +:add *A +:module *A +:type f +:type g |