diff options
Diffstat (limited to 'testsuite/tests/th/TH_spliceE5_prof_Lib.hs')
-rw-r--r-- | testsuite/tests/th/TH_spliceE5_prof_Lib.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceE5_prof_Lib.hs b/testsuite/tests/th/TH_spliceE5_prof_Lib.hs new file mode 100644 index 0000000000..1d1417e7ac --- /dev/null +++ b/testsuite/tests/th/TH_spliceE5_prof_Lib.hs @@ -0,0 +1,10 @@ + +module TH_spliceE5_prof_Lib where + +import Language.Haskell.TH + +expandVars :: [String] -> Q Exp +expandVars s = [| concat $(return (ListE (map f s))) |] + where + f x = VarE (mkName x) + |