[Haskell-cafe] Template haskell and scoping

C Rodrigues red5_2 at hotmail.com
Wed Jun 21 16:54:56 EDT 2006


The (.&.) in the splice is out of scope according to GHC.  If I use [||] 
then it works, but for my purposes it's easier to use the constructors.  How 
should I refer to that variable?

import Data.Bits
import Language.Haskell.TH

main = print $ $(return $ VarE $ mkName ".&.") 7 (14 :: Int)




More information about the Haskell-Cafe mailing list