Thanks, Heinrich!
I tried your sample code (having grabbed & compiled EnableGUI.hs). Works okay, including multiple calls to 'main'.
There are a few subtle quirks. I don't see the usual bottom-right resize
icon (three parallel lines at 45 degrees), and the Zooom/2 program for
convenient window moving & resizing isn't able to move & resize
this one window. Have you noticed something similar?
- Conal
I've asked a similar question on stackoverflowConal Elliott wrote:
I still haven't found any way to do GUIs or interactive graphics in Haskell
on a Mac that isn't plagued one or more of the following serious problems:
* Incompatible with ghci, e.g., fails to make a window frame or kills the
process the second time one opens a top-level window,
* Goes through the X server, and so doesn't look or act like a Mac app,
* Doesn't support OpenGL.
A year or two ago, I put my Haskell GUI & graphics work on hold while
waiting & hoping for a functioning pathway to open. So far I haven't heard
of one.
If anyone has found a solution, I'd love to hear!
http://stackoverflow.com/questions/5868916/
and answered it myself. Basically, GLFW works (on my machine) as long as you don't call the GLFW.terminate function. The answer includes an example program that you can try out.
It might be worth to include the extra hoops (EnableGUI) in the GLFW package.
Best regards,
Heinrich Apfelmus
--
http://apfelmus.nfshost.com
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe