summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceE6.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_spliceE6.hs')
-rw-r--r--testsuite/tests/th/TH_spliceE6.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceE6.hs b/testsuite/tests/th/TH_spliceE6.hs
new file mode 100644
index 0000000000..0ba1ba5fc4
--- /dev/null
+++ b/testsuite/tests/th/TH_spliceE6.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+-- This failed in 6.10.1, as the Name's for True and False in
+-- Language.Haskell.TH.Syntax.{trueName,falseName} were wrong.
+
+module TH_spliceE6 where
+
+a = $( (\b -> [| b |]) True )
+b = $( (\m -> [| m |]) (Just 'm') )
+c = $( (\e -> [| e |]) (Left 'e' :: Either Char Bool) )
+