[commit: testsuite] master: Test Trac #8469 (b2f5cea)
git at git.haskell.org
git at git.haskell.org
Thu Oct 24 10:17:41 UTC 2013
Repository : ssh://git@git.haskell.org/testsuite
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b2f5cea3ef00da7158e41d89c2f487bc61e14188/testsuite
>---------------------------------------------------------------
commit b2f5cea3ef00da7158e41d89c2f487bc61e14188
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Oct 23 15:03:33 2013 +0100
Test Trac #8469
>---------------------------------------------------------------
b2f5cea3ef00da7158e41d89c2f487bc61e14188
tests/ghci/scripts/T8469.hs | 3 +++
tests/ghci/scripts/T8469.script | 2 ++
tests/ghci/scripts/T8469.stdout | 10 ++++++++++
tests/ghci/scripts/T8469a.hs | 6 ++++++
tests/ghci/scripts/all.T | 2 +-
5 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/tests/ghci/scripts/T8469.hs b/tests/ghci/scripts/T8469.hs
new file mode 100644
index 0000000..e44113e
--- /dev/null
+++ b/tests/ghci/scripts/T8469.hs
@@ -0,0 +1,3 @@
+module T8469 where
+
+import T8469a
diff --git a/tests/ghci/scripts/T8469.script b/tests/ghci/scripts/T8469.script
new file mode 100644
index 0000000..d587c3e
--- /dev/null
+++ b/tests/ghci/scripts/T8469.script
@@ -0,0 +1,2 @@
+:l T8469
+:info Int
diff --git a/tests/ghci/scripts/T8469.stdout b/tests/ghci/scripts/T8469.stdout
new file mode 100644
index 0000000..6c66b35
--- /dev/null
+++ b/tests/ghci/scripts/T8469.stdout
@@ -0,0 +1,10 @@
+data Int = GHC.Types.I# GHC.Prim.Int# -- Defined in ‛GHC.Types’
+instance Bounded Int -- Defined in ‛GHC.Enum’
+instance Enum Int -- Defined in ‛GHC.Enum’
+instance Eq Int -- Defined in ‛GHC.Classes’
+instance Integral Int -- Defined in ‛GHC.Real’
+instance Num Int -- Defined in ‛GHC.Num’
+instance Ord Int -- Defined in ‛GHC.Classes’
+instance Read Int -- Defined in ‛GHC.Read’
+instance Real Int -- Defined in ‛GHC.Real’
+instance Show Int -- Defined in ‛GHC.Show’
diff --git a/tests/ghci/scripts/T8469a.hs b/tests/ghci/scripts/T8469a.hs
new file mode 100644
index 0000000..289a5fa
--- /dev/null
+++ b/tests/ghci/scripts/T8469a.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE TypeFamilies #-}
+
+module T8469a () where
+
+type family F a
+type instance F Int = Bool
diff --git a/tests/ghci/scripts/all.T b/tests/ghci/scripts/all.T
index 303fb2f..a9e82f8 100755
--- a/tests/ghci/scripts/all.T
+++ b/tests/ghci/scripts/all.T
@@ -157,4 +157,4 @@ test('T8172', normal, ghci_script, ['T8172.script'])
test('T8215', normal, ghci_script, ['T8215.script'])
test('T8357', normal, ghci_script, ['T8357.script'])
test('T8383', normal, ghci_script, ['T8383.script'])
-
+test('T8469', normal, ghci_script, ['T8469.script'])
More information about the ghc-commits
mailing list