diff options
Diffstat (limited to 'testsuite/tests/th/T10734.hs')
-rw-r--r-- | testsuite/tests/th/T10734.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/th/T10734.hs b/testsuite/tests/th/T10734.hs new file mode 100644 index 0000000000..05aef868b0 --- /dev/null +++ b/testsuite/tests/th/T10734.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE TemplateHaskell #-} +module Main where + +import Language.Haskell.TH + +main :: IO () +main = do + pprint <$> runQ [| do { let { }; return (); } |] >>= putStrLn + pprint <$> runQ [| do { let { x = 5 }; return x; } |] >>= putStrLn + pprint <$> runQ [| do { let { x = 5; y = 3 }; return x; } |] >>= putStrLn |