[Haskell-cafe] Terminating GLUT/GLFW programs
Paul L
ninegua at gmail.com
Tue Mar 25 15:37:42 EDT 2008
Peter is right at saying it's the sample GLFW program that didn't
handle Window Close event. I didn't double check his modification
because I run Linux/X11 with xmonad where there is no CLOSE button for
any window, but I trust his modification works fine :-)
As for the alternatives, I don't think there is a "nicer" model for
general purpose GUI programming in functional style just yet. Yampa is
nice in its treatment of continuous signals, but its event handling
isn't any better. Sticking to plain-old imperative style with
callbacks probably makes most practical sense.
--
Regards,
Paul Liu
Yale Haskell Group
http://www.haskell.org/yale
More information about the Haskell-Cafe
mailing list