This is so weird, if I wait long enough it works, but if I press enter fast enough, still get the wrong answer.
Try adding more delay between the two loadings, e.g., make me press enter,
and hope I am not faster than a computer:
getLine
main = do
writeTarget "arg"
func0 <- compileTarget
putStrLn $ show $ func0 2
writeTarget "arg*2"
func1 <- compileTarget
putStrLn $ show $ func1 2
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe