[commit: ghc] master: Tests Trac #14847 (91c4e71)

git at git.haskell.org git at git.haskell.org
Thu Dec 6 14:44:30 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/91c4e71f633ebc81671fbfc752fc35b84883e744/ghc

>---------------------------------------------------------------

commit 91c4e71f633ebc81671fbfc752fc35b84883e744
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Dec 6 14:21:33 2018 +0000

    Tests Trac #14847


>---------------------------------------------------------------

91c4e71f633ebc81671fbfc752fc35b84883e744
 testsuite/tests/polykinds/T14847.hs | 17 +++++++++++++++++
 testsuite/tests/polykinds/all.T     |  1 +
 2 files changed, 18 insertions(+)

diff --git a/testsuite/tests/polykinds/T14847.hs b/testsuite/tests/polykinds/T14847.hs
new file mode 100644
index 0000000..3474fe0
--- /dev/null
+++ b/testsuite/tests/polykinds/T14847.hs
@@ -0,0 +1,17 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeInType #-}
+module T14847 where
+
+data Proxy k (a :: k) = MkProxy
+data Proxy2 k a = MkP (Proxy k a)
+
+data Proxy2' k a where
+  MkP' :: Proxy k a -> Proxy2' k a
+
+data T a where
+  T :: Int -> T Bool
+
+type family F a where
+  F Int = True
+  F _   = False
diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T
index 8be2c59..18eb8a5 100644
--- a/testsuite/tests/polykinds/all.T
+++ b/testsuite/tests/polykinds/all.T
@@ -203,3 +203,4 @@ test('T15881a', normal, compile_fail, [''])
 test('T15817', normal, compile, [''])
 test('T15874', normal, compile, [''])
 test('T14887a', normal, compile, [''])
+test('T14847', normal, compile, [''])



More information about the ghc-commits mailing list