summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_spliceE1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_spliceE1.hs')
-rw-r--r--tests/examples/ghc86/TH_spliceE1.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_spliceE1.hs b/tests/examples/ghc86/TH_spliceE1.hs
new file mode 100644
index 0000000..c80e782
--- /dev/null
+++ b/tests/examples/ghc86/TH_spliceE1.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TemplateHaskell #-}
+module Main where
+
+my_id :: a -> a
+my_id x = $( [| x |] )
+
+main = print (my_id "hello")
+