summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci025.script
blob: 588e1e403daa996ff707d146f5062a4edb3019cf (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
25
:l ghci025
System.IO.putStrLn "-- test :browse! functionality"
System.IO.putStrLn ":browse! *T"
:browse! *T
System.IO.putStrLn ":browse! T"
:browse! T
:set -fprint-explicit-foralls
System.IO.putStrLn ":browse! T -- with -fprint-explicit-foralls"
:browse! T

System.IO.putStrLn "-- test :browse! <target> relative to different contexts"
:set -fforce-recomp
:l Ghci025D.hs
:add Ghci025C.hs
System.IO.putStrLn ":browse! Ghci025C -- from *Ghci025C>"
:browse! Ghci025C
:add Ghci025B.hs
System.IO.putStrLn ":browse! Ghci025C -- from *Ghci025B>, after :add Ghci025B"
:browse! Ghci025C
:m *Ghci025C
System.IO.putStrLn ":browse! Ghci025C -- from *Ghci025C>, after :m *Ghci025C"
:browse! Ghci025C
:m *Ghci025D
System.IO.putStrLn ":browse! Ghci025C -- from *Ghci025D>, after :m *Ghci025D"
:browse! Ghci025C