summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci058.script
blob: c9bbd696f5be887fe3fb7cf2f03a9073d29cc1ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

:l shell.hs
:def shell (\s -> do shell s; return "")

:set prompt ""
:set -v1

:shell echo "module Ghci058 where c = 'a'" > Ghci058.hs
:shell "$HC" $HC_OPTS $ghciWayFlags -fforce-recomp -c Ghci058.hs
:l Ghci058
c

:shell echo "module Ghci058 where c = 'b'" > Ghci058.hs
:shell "$HC" $HC_OPTS $ghciWayFlags -fforce-recomp -c Ghci058.hs
:l Ghci058
c