>>> >> >>> >> However, keyboard input is not directed to the gui but to the ghci >>> >> terminal… >>> >> >>> >> There used to be an EnableGUI module to fix this >>> >> (http://www.haskell.org/haskellwiki/WxHaskell/MacOS_X), but that does >>> >> not >>> >> seem to work anymore. >>> >> >>> >> The window can be closed and restarted from ghci though. However, the >>> >> window does not actually disappear until ghci is exited. >>> >>> I'm a little confused by this statement? >>> Do you mean: You can close the window, and ghci returns to the prompt, >>> but the actual window manager window remains? >> >> >> If I press the close button (there is no menubar), the window does not >> actually disappear but it does not react to any (mouse) inputs anymore and >> the ghci prompt returns. Without keyboard input going to the gui and without >> a menu bar, the gui is not really useful yet I guess, so I hope this is >> fixable. > > Oh, I understand now. > I haven't heard of this before, but it sounds like exactly the kind of > weirdness I'd expect. > Anyone? >
Hmm, it appears the example I was using was broke. With the HelloWorld sample and using: main = enableGUI >> start hello the mouse and keyboard input do go to the window under GHCi. So this is great as I now can do everything I could do before in GHC 6.10. If I close the window it does remain visible in an unusable state until you exit ghci. However, control returns to GHCi and I can restart the application (i.e. run "main" again), re-using the same window. So that is an improvement over before (which crashed ghci when closing the window). ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ wxhaskell-devel mailing list wxhaskell-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel