[commit: testsuite] master: Test Trac #8557 (45f2d29)
git at git.haskell.org
git at git.haskell.org
Thu Nov 28 16:06:53 UTC 2013
Repository : ssh://git@git.haskell.org/testsuite
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/45f2d29d59dcff2a5aebb5aae00e217f8f2a532c/testsuite
>---------------------------------------------------------------
commit 45f2d29d59dcff2a5aebb5aae00e217f8f2a532c
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Thu Nov 28 16:06:39 2013 +0000
Test Trac #8557
>---------------------------------------------------------------
45f2d29d59dcff2a5aebb5aae00e217f8f2a532c
tests/ghci.debugger/scripts/T8557.hs | 8 ++++++++
tests/ghci.debugger/scripts/T8557.script | 2 ++
tests/ghci.debugger/scripts/T8557.stdout | 1 +
tests/ghci.debugger/scripts/all.T | 1 +
4 files changed, 12 insertions(+)
diff --git a/tests/ghci.debugger/scripts/T8557.hs b/tests/ghci.debugger/scripts/T8557.hs
new file mode 100644
index 0000000..6b45f17
--- /dev/null
+++ b/tests/ghci.debugger/scripts/T8557.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TypeFamilies, DataKinds, PolyKinds #-}
+module T8557 where
+
+data family Sing (a :: k)
+data instance Sing (a :: [k]) = SNil
+
+x :: Sing '[]
+x = SNil
diff --git a/tests/ghci.debugger/scripts/T8557.script b/tests/ghci.debugger/scripts/T8557.script
new file mode 100644
index 0000000..8e53a74
--- /dev/null
+++ b/tests/ghci.debugger/scripts/T8557.script
@@ -0,0 +1,2 @@
+:l T8557.hs
+:force x
diff --git a/tests/ghci.debugger/scripts/T8557.stdout b/tests/ghci.debugger/scripts/T8557.stdout
new file mode 100644
index 0000000..53811a7
--- /dev/null
+++ b/tests/ghci.debugger/scripts/T8557.stdout
@@ -0,0 +1 @@
+x = SNil
diff --git a/tests/ghci.debugger/scripts/all.T b/tests/ghci.debugger/scripts/all.T
index ca5c9a1..09fa391 100644
--- a/tests/ghci.debugger/scripts/all.T
+++ b/tests/ghci.debugger/scripts/all.T
@@ -86,3 +86,4 @@ test('T2740', normal, ghci_script, ['T2740.script'])
test('getargs', normal, ghci_script, ['getargs.script'])
test('T7386', normal, ghci_script, ['T7386.script'])
+test('T8557', normal, ghci_script, ['T8557.script'])
More information about the ghc-commits
mailing list