summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_lookupName_Lib.hs
blob: a7b4c4b212965080dbceab7e6a0477f8e3aa0731 (plain)
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 }