[Haskell-cafe] Simple GUI Form
timothyhobbs at seznam.cz
timothyhobbs at seznam.cz
Sat Dec 1 09:00:12 CET 2012
I created that for a specific application I was writing, where I was saving
the data directly to disk. I modularized as an afterthought. But I don't
see anything wrong with using types that have JS in their names. It is
STILL a haskell data structure. Just one which can be converted to a
relatively universally parse-able String easily when needed ;)
It's fine if you don't use gtk. I just wanted to show off my code :)
Timothy
---------- Původní zpráva ----------
Od: Rune Harder Bak <rune at bak.dk>
Datum: 30. 11. 2012
Předmět: Re: [Haskell-cafe] Simple GUI Form
"> I know it's not wx, but if you were willing to use GTK, you could simply
> install:
>
> http://hackage.haskell.org/package/gtk-jsinput
(http://hackage.haskell.org/package/gtk-jsinput)
>
> and generate the form automatically as described in:
>
> https://github.com/timthelion/gtk-jsinput/blob/master/Graphics/UI/Gtk/
Custom/JSInput.hs
(https://github.com/timthelion/gtk-jsinput/blob/master/Graphics/UI/Gtk/Custom/JSInput.hs)
Cool!
Would rather see it generated from the haskell data structure than from
json,
but you could of cause generate json from the data type.
My understand is that GTK applications don't look and feel native on
windows/mac, that's why I went for wx,
but I could easily be wrong."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121201/66b92d97/attachment.htm>
More information about the Haskell-Cafe
mailing list