summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceE5_Lib.hs
blob: 20a9300df4f94d77a1208f9412d168bc028688a9 (plain)
1
2
3
4
5
6
7
8
9
10

module TH_spliceE5_Lib where

import Language.Haskell.TH

expandVars :: [String] -> Q Exp
expandVars s = [| concat $(return (ListE (map f s))) |]
  where
    f x = VarE (mkName x)