summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/print002.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/print002.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/print002.script19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/print002.script b/testsuite/tests/ghci.debugger/scripts/print002.script
new file mode 100644
index 0000000000..629bb92e74
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/print002.script
@@ -0,0 +1,19 @@
+-- printing of Showables
+
+:set -XExistentialQuantification -XDeriveDataTypeable -XGeneralizedNewtypeDeriving
+let f = Just (1.2::Float)
+f
+:p f
+
+let i = Just (10::Integer)
+:p i
+
+case i of Just j -> Control.Exception.evaluate j
+:p i
+
+:l ../Test.hs
+
+let s = S1 'a' 'b' 'c'
+s
+:p s
+:sp s \ No newline at end of file