diff options
Diffstat (limited to 'testsuite/tests/th/TH_spliceE4.hs')
-rw-r--r-- | testsuite/tests/th/TH_spliceE4.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceE4.hs b/testsuite/tests/th/TH_spliceE4.hs new file mode 100644 index 0000000000..99ee7a7648 --- /dev/null +++ b/testsuite/tests/th/TH_spliceE4.hs @@ -0,0 +1,13 @@ + +module Main where + +import Language.Haskell.TH + +$( do let h x = x + foo = [| \x -> $(h [| x |]) |] + + [d| baz = $foo |] + ) + +main = print (baz "Hello") + |