Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d4aca879
Commit
d4aca879
authored
Oct 13, 2012
by
ian@well-typed.com
Browse files
Add a test for reloading a module in GHCi
parent
6afab227
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghci/scripts/all.T
View file @
d4aca879
...
...
@@ -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
'])
testsuite/tests/ghci/scripts/ghci058.script
0 → 100644
View file @
d4aca879
: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
testsuite/tests/ghci/scripts/ghci058.stdout
0 → 100644
View file @
d4aca879
Ok, modules loaded: Ghci058.
'a'
Ok, modules loaded: Ghci058.
'b'
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment