diff options
Diffstat (limited to 'testsuite/tests/ghci/recompTHghci/recompTHghci.script')
-rw-r--r-- | testsuite/tests/ghci/recompTHghci/recompTHghci.script | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/recompTHghci/recompTHghci.script b/testsuite/tests/ghci/recompTHghci/recompTHghci.script new file mode 100644 index 0000000000..fc61500a09 --- /dev/null +++ b/testsuite/tests/ghci/recompTHghci/recompTHghci.script @@ -0,0 +1,24 @@ +:unset +s + +:l shell.hs +:def shell (\s -> do shell s; return "") + +-- first, tidy up: +:shell rm -f *.hi *.o *~ +:shell cp B1.hs B.hs + +-- load the program (all interpreted) +:load A.hs + +-- reloading should do nothing +:reload + +-- make sure `main' works +main + +-- change a module + recompile +:shell cp B2.hs B.hs +:reload + +-- make sure `main' still works +main |