On 18 Jul 2009, at 09:12, Jeff Wheeler wrote:
On Sat, Jul 18, 2009 at 2:58 AM, Jean-Philippe Bernardy<jeanphilippe.berna...@gmail.com> wrote:Do you know if ScionM has side effects? ie. If I load a file in one Scion action, will it still available for future actions? What if I load a cabal project?They shouldn't, according to nominolo. If we want them to do so, then apparently we'll have to use a mutex MVar or similar and let one ScionM run in a background thread.
It is possible to get a handle of the state and pass it around via reflectScionM and reifyScionM. There might still be printing to stdout from the GHC API or Cabal and you shouldn't try to run several sessions in parallel, since the GHC API is not prepared for that, yet. But you can save the state wherever you want, use it to call a Scion function and save the result state.
/ Thomas -- Push the envelope. Watch it bend.
PGP.sig
Description: This is a digitally signed message part