Test Trac #8469
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 23 Oct 2013 14:03:33 +0000 (15:03 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 23 Oct 2013 14:03:59 +0000 (15:03 +0100)
testsuite/tests/ghci/scripts/T8469.hs [new file with mode: 0644]
testsuite/tests/ghci/scripts/T8469.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T8469.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/T8469a.hs [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T

diff --git a/testsuite/tests/ghci/scripts/T8469.hs b/testsuite/tests/ghci/scripts/T8469.hs
new file mode 100644 (file)
index 0000000..e44113e
--- /dev/null
@@ -0,0 +1,3 @@
+module T8469 where
+
+import T8469a
diff --git a/testsuite/tests/ghci/scripts/T8469.script b/testsuite/tests/ghci/scripts/T8469.script
new file mode 100644 (file)
index 0000000..d587c3e
--- /dev/null
@@ -0,0 +1,2 @@
+:l T8469
+:info Int
diff --git a/testsuite/tests/ghci/scripts/T8469.stdout b/testsuite/tests/ghci/scripts/T8469.stdout
new file mode 100644 (file)
index 0000000..6c66b35
--- /dev/null
@@ -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/testsuite/tests/ghci/scripts/T8469a.hs b/testsuite/tests/ghci/scripts/T8469a.hs
new file mode 100644 (file)
index 0000000..289a5fa
--- /dev/null
@@ -0,0 +1,6 @@
+{-# LANGUAGE TypeFamilies #-}
+
+module T8469a () where
+
+type family F a
+type instance F Int = Bool
index 303fb2f..a9e82f8 100755 (executable)
@@ -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'])