Hi Simon
Simon> Yes, this is a known bug,
Sorry that I'm not perfectly aware of everything going
on with Template Haskell.
Simon> but thank you for reporting it
Simon> anyway. I'm going to fix it as part of my next sweep though.
Thank you very much. I'm happy to know that it is really possible
to apply the generated code to run-time values; taking the
idea of the workaround:
main = $([| do
s <- getLine
let x = read s :: Double
putStrLn (show ($(pow [|x|] 5))) |])
--
Dr. Christoph Herrmann
Teaching and Research Assistant
University of Passau, Germany
http://www.fmi.uni-passau.de/~herrmann
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs