ghc-exactprint-0.5.3.1: tests/examples/ghc80/TH_spliceE5_prof_ext_Lib.hs
{-# LANGUAGE TemplateHaskellQuotes #-}
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)