ghc-6.0 compiler bug

Ch. A. Herrmann herrmann at fmi.uni-passau.de
Fri Jun 6 10:33:24 EDT 2003


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



More information about the Glasgow-haskell-bugs mailing list