[Haskell-cafe] GHCI hangs on Gtk2HS SOE on Windows, but GHC works fine?

bf3 at telenet.be bf3 at telenet.be
Fri Jun 15 17:15:05 EDT 2007

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

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.


More information about the Haskell-Cafe mailing list