This patch bakes the old EnableGUI.hs solution right into the wxcore package. This works because GHC packages may reference external libraries that GHCi will link in.
Note: The new GHCiSupport.hs module probably needs to be wrapped in #ifdefs.
Note: People need to be reminded to use the ghci -fno-ghci-sandbox flag if they want to use wx from GHCi.
This patch does not address the issue that wx is prone to crashes when used twice from GHCi.
Enable GUI support in GHCi on MacOS X.
I have created a branch on my local build (GHCI_FIX_BRANCH) which pulls this. I would prefer not to put it into master until the conditional compilation has been sorted out, as it will break Windows and Linux as it stands.
I will pull into mainline once we have something which works for all platforms - I agree that this is a good idea.
Wrap GHCi support in #if darwin_HOST_OS.
Ok. I have found the relevant CPP macro and wrapped everything in the appropriate #if .
Thanks so much for this. Pulled into master now, along with a partial fix for the TextCtrl behaviour.