summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/print017.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/print017.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/print017.script12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/print017.script b/testsuite/tests/ghci.debugger/scripts/print017.script
new file mode 100644
index 0000000000..7a8371a2c1
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/print017.script
@@ -0,0 +1,12 @@
+-- More newtypes goodness
+
+:set -XExistentialQuantification -XDeriveDataTypeable -XGeneralizedNewtypeDeriving
+:l ../Test
+let a = map (MkT2 . MkT) [1..2]
+:p a
+seq _t1 ()
+:p a
+seq _t2 ()
+:p a
+seq _t4 ()
+:p a