Commit d4aca879 authored by ian@well-typed.com's avatar ian@well-typed.com

Add a test for reloading a module in GHCi

parent 6afab227
......@@ -131,3 +131,8 @@ test('T6091', normal, ghci_script, ['T6091.script'])
test('T6106', extra_clean(['T6106.hs']), ghci_script, ['T6106.script'])
test('T6105', normal, ghci_script, ['T6105.script'])
test('T7117', normal, ghci_script, ['T7117.script'])
test('ghci058',
extra_clean(['Ghci058.hs', 'Ghci058.hi', 'Ghci058.o']),
ghci_script,
['ghci058.script'])
:set prompt ""
:set -v1
:! echo "module Ghci058 where c = 'a'" > Ghci058.hs
:! "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
:l Ghci058
c
:! echo "module Ghci058 where c = 'b'" > Ghci058.hs
:! "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
:l Ghci058
c
Ok, modules loaded: Ghci058.
'a'
Ok, modules loaded: Ghci058.
'b'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment