[Haskell] how to write an interactive program ? gui library to use ?

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sat Feb 25 04:57:39 EST 2006


On Fri, 2006-02-24 at 19:31 +0100, minh thu wrote:
> Hi all,
>  
> 1/
> I'd like to know how can I implement an interactive program (an
> editor) in haskell where some "things" have to be updated.
> The "things" can be text in a word processor, or a pixel array in a 2d
> graphics editor, and so on.
> Have I to pass the state (the "things") explicitely in the arguments
> of the main loop (a recursive function) ?
> Sorry if it's stupid...
>  
> 2/
> Another one concerning gui library: what's the best choice ? I need it
> to work both on linux and windows. I also need it can handle an OpenGL
> context.

There are two Haskell GUI libs that fit those requirements: Gtk2Hs and
wxHaskell.

http://haskell.org/gtk2hs/

http://wxhaskell.sourceforge.net/

Duncan



More information about the Haskell mailing list