Add a -fghci-sandbox flag so that we can en/disable the ghci sandbox
authorIan Lynagh <igloo@earth.li>
Fri, 15 Oct 2010 17:27:46 +0000 (17:27 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 15 Oct 2010 17:27:46 +0000 (17:27 +0000)
commitbf60bbfb2e76a88265c60a1e9b4f7c2dd1bbfa11
tree0391e51e685a93efb25952742809ede61558c474
parent1be165c939bbfa7bb287eae3ef1a989ef6086355
Add a -fghci-sandbox flag so that we can en/disable the ghci sandbox
It's on by default (which matches the previous behaviour).

Motivation:
GLUT on OS X needs to run on the main thread. If you
try to use it from another thread then you just get a
white rectangle rendered. For this, or anything else
with such restrictions, you can turn the GHCi sandbox off
and things will be run in the main thread.
compiler/main/DynFlags.hs
compiler/main/InteractiveEval.hs
docs/users_guide/flags.xml