diff options
author | Richard Eisenberg <eir@cis.upenn.edu> | 2013-02-11 23:06:41 -0500 |
---|---|---|
committer | Richard Eisenberg <eir@cis.upenn.edu> | 2013-02-11 23:06:41 -0500 |
commit | 675067683ad9039fdc5bad77fcb8fd54c9c0b8e4 (patch) | |
tree | c13ee44e4deeb675bfda098ed549884c4566409e /testsuite/tests/th/T7681.hs | |
parent | 716d83b0ae6b767b46bb359e5790004b1c73b01f (diff) | |
download | haskell-675067683ad9039fdc5bad77fcb8fd54c9c0b8e4.tar.gz |
Added testcase for Trac #7681, a Template Haskell missing feature.
Diffstat (limited to 'testsuite/tests/th/T7681.hs')
-rw-r--r-- | testsuite/tests/th/T7681.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/th/T7681.hs b/testsuite/tests/th/T7681.hs new file mode 100644 index 0000000000..c7f43e7798 --- /dev/null +++ b/testsuite/tests/th/T7681.hs @@ -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 {} |] ) + |