A genuine bug, thank you.  I've just fixed it.  We'll put the fix in
6.4.3.

Simon

| -----Original Message-----
| From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of C
| Rodrigues
| Sent: 21 June 2006 21:55
| To: [email protected]
| Subject: [Haskell-cafe] Template haskell and scoping
| 
| 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)
| 
| 
| _______________________________________________
| Haskell-Cafe mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to