[Haskell-cafe] Re: Problem with reloading modules in GHC API

Hongmin Fan hongmin.fan.lists at gmail.com
Wed Jul 21 19:00:03 EDT 2010


This is so weird, if I wait long enough it works, but if I press enter fast
enough, still get the wrong answer.

On Wed, Jul 21, 2010 at 2:34 PM, Albert Y.C.Lai <trebla at vex.net> wrote:

> Try adding more delay between the two loadings, e.g., make me press enter,
> and hope I am not faster than a computer:
>
> main = do
>     writeTarget "arg"
>     func0 <- compileTarget
>     putStrLn $ show $ func0 2
>
>     getLine
>
>     writeTarget "arg*2"
>     func1 <- compileTarget
>     putStrLn $ show $ func1 2
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100721/5f3486ad/attachment.html


More information about the Haskell-Cafe mailing list