summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_spliceE5_prof_ext_Lib.hs
blob: 5382590cabd8fa0570857d3ce71a65c8902bdbea (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE TemplateHaskell #-}
module TH_spliceE5_prof_ext_Lib where

import Language.Haskell.TH

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