Added testcase for Trac #7681, a Template Haskell missing feature.
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 12 Feb 2013 04:06:41 +0000 (23:06 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Tue, 12 Feb 2013 04:06:41 +0000 (23:06 -0500)
testsuite/tests/th/T7681.hs [new file with mode: 0644]
testsuite/tests/th/all.T

diff --git a/testsuite/tests/th/T7681.hs b/testsuite/tests/th/T7681.hs
new file mode 100644 (file)
index 0000000..c7f43e7
--- /dev/null
@@ -0,0 +1,12 @@
+{-# LANGUAGE EmptyCase, TemplateHaskell, LambdaCase #-}
+
+module T7681 where
+
+data Void
+
+foo :: Void -> a
+foo x = $( [| case x of {} |] )
+
+bar :: Void -> a
+bar = $( [| \case {} |] )
+
index caaa3df..b279dcd 100644 (file)
@@ -269,3 +269,4 @@ test('T7532',
      ['T7532', '-v0'])
 test('T2222', normal, compile, ['-v0'])
 test('T1849', normal, ghci_script, ['T1849.script'])
+test('T7681', normal, compile, ['-v0'])
\ No newline at end of file