blob: 1d1417e7ac6d6b43a983ce7fc244128e10cc3ac5 (
plain)
1
2
3
4
5
6
7
8
9
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)
|