summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/print011.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/print011.script')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/print011.script13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/print011.script b/testsuite/tests/ghci.debugger/scripts/print011.script
new file mode 100644
index 0000000000..9d200dcaa2
--- /dev/null
+++ b/testsuite/tests/ghci.debugger/scripts/print011.script
@@ -0,0 +1,13 @@
+-- Type reconstruction with newtypes involved
+
+:set -XExistentialQuantification -XDeriveDataTypeable -XGeneralizedNewtypeDeriving
+:l ../Test
+
+let i = map (Just . Just) [My 1 .. My 3]
+:p i
+seq _t1 ()
+:p i
+seq _t2 ()
+:p i
+seq _t4 ()
+:p i \ No newline at end of file