GHC API: Using runGhc twice or from multiple threads?

Benno Fünfstück benno.fuenfstueck+ghc at gmail.com
Tue Jan 7 13:55:44 UTC 2014


Hello,

is the following safe to do?

main = do
  runGhc libdir $ do ...
  runGhc libdir $ do ...

Or will this cause trouble? Is there state that is shared between the two
calls?

And what about this one:

main = do
   forkIO $ runGhc libdir $ do ...
   forkIO $ runGhc libdir $ do ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140107/20d7e60a/attachment.html>


More information about the ghc-devs mailing list