[commit: testsuite] master: Test Trac #8644 (2818ec6)

git at git.haskell.org git at git.haskell.org
Fri Jan 3 16:16:19 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2818ec6887a713211dfca69cc80241a1ef2e5d33/testsuite

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

commit 2818ec6887a713211dfca69cc80241a1ef2e5d33
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Jan 3 16:06:04 2014 +0000

    Test Trac #8644


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

2818ec6887a713211dfca69cc80241a1ef2e5d33
 tests/typecheck/should_compile/T8644.hs |   11 +++++++++++
 tests/typecheck/should_compile/all.T    |    1 +
 2 files changed, 12 insertions(+)

diff --git a/tests/typecheck/should_compile/T8644.hs b/tests/typecheck/should_compile/T8644.hs
new file mode 100644
index 0000000..aa3ec09
--- /dev/null
+++ b/tests/typecheck/should_compile/T8644.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE ConstraintKinds, RankNTypes, GADTs #-}
+module T8644 where
+
+data Dict c where Dict :: c => Dict c
+
+foo :: Dict c -> (c => r) -> r
+foo Dict x = x
+
+bar :: Dict ()
+bar = Dict
+
diff --git a/tests/typecheck/should_compile/all.T b/tests/typecheck/should_compile/all.T
index f773034..0fe6968 100644
--- a/tests/typecheck/should_compile/all.T
+++ b/tests/typecheck/should_compile/all.T
@@ -414,3 +414,4 @@ test('T8392', normal, compile, [''])
 test('T8474', normal, compile, [''])
 test('T8563', normal, compile, [''])
 test('T8565', normal, compile, [''])
+test('T8644', normal, compile, [''])



More information about the ghc-commits mailing list