
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
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...)
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."