1 2 3 4 5 6 7 8 9
module TH_lookupName_Lib where import Language.Haskell.TH f :: String f = "TH_lookupName_Lib.f" lookup_f :: Q Exp lookup_f = do { Just n <- lookupValueName "f"; varE n }