TH bug: Lift (a -> b) where
Saswat Anand
saswat at cc.gatech.edu
Wed May 19 16:05:18 EDT 2004
Hello,
I dont know if it has been reported, this looks like a bug in TH. The
program goes into infinite loop.
Saswat
-----------------------------
instance Lift (a -> b) where
lift f = [| f |]
compile :: (a -> b) -> ExpQ
compile p = lift p
printE :: ExpQ -> IO ()
printE expQ = do exp <- unQ expQ
putStrLn (show exp)
inc x = x + 1
main = printE (compile inc)
-----------------------------
More information about the Glasgow-haskell-bugs
mailing list