summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T2182ghci.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/scripts/T2182ghci.script')
-rw-r--r--testsuite/tests/ghci/scripts/T2182ghci.script49
1 files changed, 49 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T2182ghci.script b/testsuite/tests/ghci/scripts/T2182ghci.script
new file mode 100644
index 0000000000..9c9f78781b
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T2182ghci.script
@@ -0,0 +1,49 @@
+"NO"
+(\x -> x)
+
+:m +Text.Show.Functions
+"YES"
+(\x -> x)
+
+:m -Text.Show.Functions
+"NO"
+(\x -> x)
+
+:load T2182ghci_A
+"YES"
+(\x -> x)
+T
+
+:m -T2182ghci_A
+"NO"
+(\x -> x)
+
+:load T2182ghci_B
+"YES"
+(\x -> x)
+T
+
+:m -T2182ghci_B
+"NO"
+(\x -> x)
+
+:load T2182ghci_C
+"YES"
+(\x -> x)
+T
+
+:m -T2182ghci_C
+:load T2182ghci_A
+:load T2182ghci_B
+"YES"
+(\x -> x)
+T
+
+:m -T2182ghci_A
+"YES"
+(\x -> x)
+T
+
+:m -T2182ghci_B
+"NO"
+(\x -> x)