Enable GUI support in GHCi by default on MacOS X #6

merged 2 commits into from Apr 20, 2012

2 participants


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.


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.


Ok. I have found the relevant CPP macro and wrapped everything in the appropriate #if .

@jodonoghue jodonoghue merged commit 3a6d05e into jodonoghue:master Apr 20, 2012

Thanks so much for this. Pulled into master now, along with a partial fix for the TextCtrl behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment