
Seeing my woes with FranTk - what else is out there that people use if a (simple) GUI is desired for a Haskell app? Just a few textboxes and a button or two would do me. Thanks in advance! Regards, Torsten

On Jan 14, 2008 10:09 PM, Torsten Otto
Seeing my woes with FranTk - what else is out there that people use if a (simple) GUI is desired for a Haskell app? Just a few textboxes and a button or two would do me.
Thanks in advance!
I like wxHaskell. It seems that GTK2HS is more active though, but I never did manage to install it on windows. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862

Hi Torsten,
Seeing my woes with FranTk - what else is out there that people use if a (simple) GUI is desired for a Haskell app? Just a few textboxes and a button or two would do me.
Gtk2hs in GHC: http://www.haskell.org/gtk2hs/ Thanks Neil

There's also the HOC (Haskell Objective-C bridge), which lets you use Apple's Cocoa APIs. Bob On 14 Jan 2008, at 22:09, Torsten Otto wrote:
Seeing my woes with FranTk - what else is out there that people use if a (simple) GUI is desired for a Haskell app? Just a few textboxes and a button or two would do me.
Thanks in advance!
Regards, Torsten _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hello Torsten, Tuesday, January 15, 2008, 1:09:54 AM, you wrote:
Seeing my woes with FranTk - what else is out there that people use if a (simple) GUI is desired for a Haskell app? Just a few textboxes and a button or two would do me.
i've read Gtk2Hs tutorial[1] and developed first version of GUI for my program in 1 day [1] http://darcs.haskell.org/gtk2hs/docs/tutorial/Tutorial_Port/index.xhtml -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

Hi Torsten, Here is something I use in GTK2HS when teaching beginners: http://hpaste.org/5017 Hope this helps, Yitz

btw, if you use GTK2HS on the Mac, don't forget to start up X Windows support, and run "export DISPLAY=:0.0" in your terminal window, before you run your program. X Windows is usually in Applications/Utilities, but only if you installed it manually from the Mac OS X discs, it is not installed by default. Good news - Gtk2 now has native support for the Mac, so you probably won't need to run X starting with the next version of GTK2HS. Regard, Yitz

The advice below is for Mac OS X 10.4 and below. Starting with Mac OS X 10.5 (Leopard) the DISPLAY is set for you by the operating system. Mine is currently "/tmp/launch-sQZXQV/:0" which looks very strange because it is used to cause the launchd daemon to start the X server on demand (i.e. lazily). Yitzchak Gale wrote:
btw, if you use GTK2HS on the Mac, don't forget to start up X Windows support, and run "export DISPLAY=:0.0" in your terminal window, before you run your program. X Windows is usually in Applications/Utilities, but only if you installed it manually from the Mac OS X discs, it is not installed by default.
Good news - Gtk2 now has native support for the Mac, so you probably won't need to run X starting with the next version of GTK2HS.
Regard, Yitz
-- Chris

Hi Torsten, If you really only want a simple GUI - I seem to recall you're on a Mac - you might even be able to get away with the AppleScript bindings: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/AppleScript-0.1.3 There are an example of a simple textfield GUI in the examples directory. Hope this helps, Wouter This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

If you can get wxHaskell installed & working, you could try Phooey and/or
TV. Both are described on the Haskell wiki and available via darcs and
Hackage.
On Jan 14, 2008 2:09 PM, Torsten Otto
Seeing my woes with FranTk - what else is out there that people use if a (simple) GUI is desired for a Haskell app? Just a few textboxes and a button or two would do me.
Thanks in advance!
Regards, Torsten _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Am Dienstag, 15. Januar 2008 20:42 schrieb Conal Elliott:
If you can get wxHaskell installed & working, you could try Phooey and/or TV. Both are described on the Haskell wiki and available via darcs and Hackage.
And they have the interesting property of being a functional approach to GUI programming (similar to FranTk). Most of the other Haskell GUI toolkits are imperative in nature. And now my shameless plug: If you can get Gtk2Hs installed and working, you could try Grapefruit which is also a functional library. In addition to GUIs, it also supports animated graphics. At the moment, it’s main downside is that it supports only a small set of widgets (buttons, labels, edit fields and boxes). See http://haskell.org/haskellwiki/Grapefruit. Best wishes, Wolfgang

Gee, wizzz, folks. Thank you all for the many hints. I can't say yet which one I'll dive into but I'm in good spirits about Haskell and GUI now. I like the idea of a functional approach and I don't need extensive GUIs either, so Grapefruit just added another candidate... Using the Cocoa API or AppleScript bindings is very slick (I'll look into that), but I think I'd rather have a platform independent solution for my class. I'll do my best to post a beginners tutorial on the web where it may be found, but it'll likely be in German. I will definitely continue to recommend Haskell to my colleagues. Thanks again for your support, Torsten Am 17.01.2008 um 15:09 schrieb Wolfgang Jeltsch:
Am Dienstag, 15. Januar 2008 20:42 schrieb Conal Elliott:
If you can get wxHaskell installed & working, you could try Phooey and/or TV. Both are described on the Haskell wiki and available via darcs and Hackage.
And they have the interesting property of being a functional approach to GUI programming (similar to FranTk). Most of the other Haskell GUI toolkits are imperative in nature.
And now my shameless plug: If you can get Gtk2Hs installed and working, you could try Grapefruit which is also a functional library. In addition to GUIs, it also supports animated graphics. At the moment, it’s main downside is that it supports only a small set of widgets (buttons, labels, edit fields and boxes). See http://haskell.org/haskellwiki/Grapefruit.
Best wishes, Wolfgang _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (10)
-
Bulat Ziganshin
-
ChrisK
-
Conal Elliott
-
Neil Mitchell
-
Sebastian Sylvan
-
Thomas Davie
-
Torsten Otto
-
Wolfgang Jeltsch
-
Wouter Swierstra
-
Yitzchak Gale