I'm learning Haskell using Paul Hudak's book SOE. 

I'm using GHC 6.6 under Windows XP.

GHC on Windows does not seem to come with HGL (is this correct?), so I used
Gtk2HS, which contains a SOE implementation.

I noticed that most programs hang when using GHCI, but they work fine with
GHC.

For example, the following mini program:

import Graphics.SOE.Gtk
main = runGraphics (openWindow "Stuck" (300,300) >>= closeWindow)

completely hangs GHCI when running 'main', but using the GHC-created
executable, a window correctly pops up and closes immediately, nicely
returning to the command prompt.

As GHCI is easier for experimenting, it would be nice if this worked.

Thanks,
Peter

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to