diff options
Diffstat (limited to 'testsuite/tests/th/T21547.hs')
-rw-r--r-- | testsuite/tests/th/T21547.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/th/T21547.hs b/testsuite/tests/th/T21547.hs new file mode 100644 index 0000000000..99b9992c59 --- /dev/null +++ b/testsuite/tests/th/T21547.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE TemplateHaskell #-} +module T21547 where +import T21547A + +data T a = T a deriving (Show) + +main :: IO () +main = do + let x = $$(foo [|| T () ||]) + let y = $$(foo [|| F () ||]) + return () |