[Haskell-cafe] Simple GUI Form

Rune Harder Bak rune at bak.dk
Sat Dec 1 20:51:14 CET 2012


Sure, and thanks for sharing.
We need more declarative GUI building!

On Sat, Dec 1, 2012 at 9:00 AM,  <timothyhobbs at seznam.cz> wrote:
> 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
>>
>> and generate the form automatically as described in:
>>
>>
>> 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.



More information about the Haskell-Cafe mailing list