blob: fc61500a099d9e39bc4d2f8a02437cfe76ac6bb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|