[commit: testsuite] master: Test Trac #8470 (418cf76)

git at git.haskell.org git at git.haskell.org
Wed Oct 23 11:17:31 UTC 2013


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/418cf760dfc1179664054f8da00bb309341b2047/testsuite

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

commit 418cf760dfc1179664054f8da00bb309341b2047
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Oct 23 12:17:08 2013 +0100

    Test Trac #8470


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

418cf760dfc1179664054f8da00bb309341b2047
 tests/deSugar/should_compile/T8470.hs |   11 +++++++++++
 tests/deSugar/should_compile/all.T    |    1 +
 2 files changed, 12 insertions(+)

diff --git a/tests/deSugar/should_compile/T8470.hs b/tests/deSugar/should_compile/T8470.hs
new file mode 100644
index 0000000..8784c58
--- /dev/null
+++ b/tests/deSugar/should_compile/T8470.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeFamilies #-}
+{-# OPTIONS_GHC -fwarn-unused-do-bind #-}
+module T8470 where
+
+data User
+type family MethodResult ev
+type instance MethodResult User = ()
+type EventResult a = MethodResult a
+
+foo = do undefined :: IO (EventResult User)
+         return ()
diff --git a/tests/deSugar/should_compile/all.T b/tests/deSugar/should_compile/all.T
index 4551709..ac748d3 100644
--- a/tests/deSugar/should_compile/all.T
+++ b/tests/deSugar/should_compile/all.T
@@ -102,3 +102,4 @@ test('T5252Take2',
      ['$MAKE -s --no-print-directory T5252Take2'])
 test('T2431', normal, compile, ['-ddump-simpl -dsuppress-uniques'])
 test('T7669', normal, compile, [''])
+test('T8470', normal, compile, [''])



More information about the ghc-commits mailing list