Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Haskell GTK (Giacomo Tesio)
2. Re: Haskell GTK (Emmanuel Touzery)
3. Re: Haskell GTK (Giacomo Tesio)
----------------------------------------------------------------------
Message: 1
Date: Mon, 10 Jun 2013 12:00:15 +0200
From: Giacomo Tesio <[email protected]>
Subject: Re: [Haskell-beginners] Haskell GTK
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAHL7psEWOOXDzHczmZAB5BLkhPTb3gEooo4f4R=j0upc8et...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
This is the point: in
https://github.com/Tener/sheep-transfer/blob/master/src/sheep-gtk.hs the
main function requires 196 lines!
How can this be acceptable? GTK is a good toolkit by itself. As far as I
can see, the problem here is haskell: I can't see how I can build a simple,
basic MVP framework on top of gtk2hs.
Probably I've finally found something relevant at which Haskell sucks.
Still I can't understand how haskellers code GUI when they really need to.
Do they use another language and interact with haskell programs via pipes?
Giacomo
On Mon, Jun 10, 2013 at 11:17 AM, Krzysztof Skrz?tnicki <[email protected]>wrote:
> If you want a bit more complex GTK programs you can look at these:
>
> https://github.com/Tener/spike -- web browser
> https://github.com/Tener/sheep-transfer -- local network file sharing
>
> However, I'm *not* satisfied by the current state of GUI programming in
> Haskell. Both programs above are using GTK just because there is nothing
> better. GTK is a pain to install on Windows too.
>
>
>
> On Mon, Jun 10, 2013 at 10:58 AM, Giacomo Tesio <[email protected]> wrote:
>
>> Thanks, but no, it doesn't help... I have to stick with GTK.
>>
>> Most of the GUI examples I saw are toy programs.
>> Leksah is a notable exception, but it's way too complex to be a useful
>> learning tool.
>>
>> In OO languages, I'm used to the MVP pattern which helps to organize the
>> code.
>> But I'm finding so complex building GUI in haskell that I'm starting to
>> think that it's not a good choice for such task.
>>
>>
>> Giacomo
>>
>>
>> On Mon, Jun 10, 2013 at 2:52 AM, Tim Perry <[email protected]> wrote:
>>
>>> Did you try this:
>>> http://en.m.wikibooks.org/wiki/Haskell/GUI
>>>
>>> I hope it helps.
>>> Tim
>>>
>>>
>>> On Jun 9, 2013, at 10:22 AM, Giacomo Tesio <[email protected]> wrote:
>>>
>>> I have to write a "simple" GUI that plot some timeseries with a few
>>> parameterization (dates, times and so on...).
>>> The task should be simple, but I'm find using the GTK binding quite
>>> weird.
>>>
>>> I'm surprised that nothing better exists for GUI programming in haskell.
>>> I read a few about FRP but AFAIK it doesn't adress simple desktop UI full
>>> of input to validate and grid/tree to show.
>>>
>>> Any suggestion? I've already read the pages on Hackage without much
>>> success.
>>> At least, can someone point me to the right direction for the codebase
>>> organization?
>>>
>>>
>>> Giacomo
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130610/39263b11/attachment-0001.htm>
------------------------------
Message: 2
Date: Mon, 10 Jun 2013 12:06:20 +0200
From: Emmanuel Touzery <[email protected]>
Subject: Re: [Haskell-beginners] Haskell GTK
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAC42Ren=xoydhuhk8neblxt51fgyleuft8jxvj8jxi848gr...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
About this, I do not know the Haskell gtk bindings, but I know GTK.
In the example you gave it appears that the code builds the GUI by itself.
I think the code would be much more concise if it was using glade files
instead, which appears to be supported:
http://projects.haskell.org/gtk2hs/docs/tutorial/glade/
Probably with glade the code will be of acceptable verbosity.
For my own user interfaces otherwise I turned towards the web, even for
local applications (on port :8000).
Emmanuel
On Mon, Jun 10, 2013 at 12:00 PM, Giacomo Tesio <[email protected]> wrote:
> This is the point: in
> https://github.com/Tener/sheep-transfer/blob/master/src/sheep-gtk.hs the
> main function requires 196 lines!
>
> How can this be acceptable? GTK is a good toolkit by itself. As far as I
> can see, the problem here is haskell: I can't see how I can build a simple,
> basic MVP framework on top of gtk2hs.
>
> Probably I've finally found something relevant at which Haskell sucks.
> Still I can't understand how haskellers code GUI when they really need to.
> Do they use another language and interact with haskell programs via pipes?
>
>
> Giacomo
>
>
>
> On Mon, Jun 10, 2013 at 11:17 AM, Krzysztof Skrz?tnicki
> <[email protected]>wrote:
>
>> If you want a bit more complex GTK programs you can look at these:
>>
>> https://github.com/Tener/spike -- web browser
>> https://github.com/Tener/sheep-transfer -- local network file sharing
>>
>> However, I'm *not* satisfied by the current state of GUI programming in
>> Haskell. Both programs above are using GTK just because there is nothing
>> better. GTK is a pain to install on Windows too.
>>
>>
>>
>> On Mon, Jun 10, 2013 at 10:58 AM, Giacomo Tesio <[email protected]> wrote:
>>
>>> Thanks, but no, it doesn't help... I have to stick with GTK.
>>>
>>> Most of the GUI examples I saw are toy programs.
>>> Leksah is a notable exception, but it's way too complex to be a useful
>>> learning tool.
>>>
>>> In OO languages, I'm used to the MVP pattern which helps to organize the
>>> code.
>>> But I'm finding so complex building GUI in haskell that I'm starting to
>>> think that it's not a good choice for such task.
>>>
>>>
>>> Giacomo
>>>
>>>
>>> On Mon, Jun 10, 2013 at 2:52 AM, Tim Perry <[email protected]> wrote:
>>>
>>>> Did you try this:
>>>> http://en.m.wikibooks.org/wiki/Haskell/GUI
>>>>
>>>> I hope it helps.
>>>> Tim
>>>>
>>>>
>>>> On Jun 9, 2013, at 10:22 AM, Giacomo Tesio <[email protected]> wrote:
>>>>
>>>> I have to write a "simple" GUI that plot some timeseries with a few
>>>> parameterization (dates, times and so on...).
>>>> The task should be simple, but I'm find using the GTK binding quite
>>>> weird.
>>>>
>>>> I'm surprised that nothing better exists for GUI programming in
>>>> haskell. I read a few about FRP but AFAIK it doesn't adress simple desktop
>>>> UI full of input to validate and grid/tree to show.
>>>>
>>>> Any suggestion? I've already read the pages on Hackage without much
>>>> success.
>>>> At least, can someone point me to the right direction for the codebase
>>>> organization?
>>>>
>>>>
>>>> Giacomo
>>>>
>>>> _______________________________________________
>>>> Beginners mailing list
>>>> [email protected]
>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>>
>>>>
>>>> _______________________________________________
>>>> Beginners mailing list
>>>> [email protected]
>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130610/6ca0a7a3/attachment-0001.htm>
------------------------------
Message: 3
Date: Mon, 10 Jun 2013 12:42:31 +0200
From: Giacomo Tesio <[email protected]>
Subject: Re: [Haskell-beginners] Haskell GTK
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAHL7psGDWOaPrOnQBg6a4bXbAHv82xrRWFGUY-uTe_cyX=v...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Yes, I'm using Glade.
Using web is an option, but for the particular UI I'm working on it's quite
wrong. And BTW, that's equivalent to using Javascript, instead of Haskell,
to code the GUI.
Giacomo
On Mon, Jun 10, 2013 at 12:06 PM, Emmanuel Touzery <[email protected]>wrote:
> About this, I do not know the Haskell gtk bindings, but I know GTK.
>
> In the example you gave it appears that the code builds the GUI by itself.
>
> I think the code would be much more concise if it was using glade files
> instead, which appears to be supported:
> http://projects.haskell.org/gtk2hs/docs/tutorial/glade/
>
> Probably with glade the code will be of acceptable verbosity.
>
> For my own user interfaces otherwise I turned towards the web, even for
> local applications (on port :8000).
>
> Emmanuel
>
>
> On Mon, Jun 10, 2013 at 12:00 PM, Giacomo Tesio <[email protected]> wrote:
>
>> This is the point: in
>> https://github.com/Tener/sheep-transfer/blob/master/src/sheep-gtk.hs the
>> main function requires 196 lines!
>>
>> How can this be acceptable? GTK is a good toolkit by itself. As far as I
>> can see, the problem here is haskell: I can't see how I can build a simple,
>> basic MVP framework on top of gtk2hs.
>>
>> Probably I've finally found something relevant at which Haskell sucks.
>> Still I can't understand how haskellers code GUI when they really need to.
>> Do they use another language and interact with haskell programs via
>> pipes?
>>
>>
>> Giacomo
>>
>>
>>
>> On Mon, Jun 10, 2013 at 11:17 AM, Krzysztof Skrz?tnicki <[email protected]
>> > wrote:
>>
>>> If you want a bit more complex GTK programs you can look at these:
>>>
>>> https://github.com/Tener/spike -- web browser
>>> https://github.com/Tener/sheep-transfer -- local network file sharing
>>>
>>> However, I'm *not* satisfied by the current state of GUI programming in
>>> Haskell. Both programs above are using GTK just because there is nothing
>>> better. GTK is a pain to install on Windows too.
>>>
>>>
>>>
>>> On Mon, Jun 10, 2013 at 10:58 AM, Giacomo Tesio <[email protected]>wrote:
>>>
>>>> Thanks, but no, it doesn't help... I have to stick with GTK.
>>>>
>>>> Most of the GUI examples I saw are toy programs.
>>>> Leksah is a notable exception, but it's way too complex to be a useful
>>>> learning tool.
>>>>
>>>> In OO languages, I'm used to the MVP pattern which helps to organize
>>>> the code.
>>>> But I'm finding so complex building GUI in haskell that I'm starting to
>>>> think that it's not a good choice for such task.
>>>>
>>>>
>>>> Giacomo
>>>>
>>>>
>>>> On Mon, Jun 10, 2013 at 2:52 AM, Tim Perry <[email protected]> wrote:
>>>>
>>>>> Did you try this:
>>>>> http://en.m.wikibooks.org/wiki/Haskell/GUI
>>>>>
>>>>> I hope it helps.
>>>>> Tim
>>>>>
>>>>>
>>>>> On Jun 9, 2013, at 10:22 AM, Giacomo Tesio <[email protected]> wrote:
>>>>>
>>>>> I have to write a "simple" GUI that plot some timeseries with a few
>>>>> parameterization (dates, times and so on...).
>>>>> The task should be simple, but I'm find using the GTK binding quite
>>>>> weird.
>>>>>
>>>>> I'm surprised that nothing better exists for GUI programming in
>>>>> haskell. I read a few about FRP but AFAIK it doesn't adress simple desktop
>>>>> UI full of input to validate and grid/tree to show.
>>>>>
>>>>> Any suggestion? I've already read the pages on Hackage without much
>>>>> success.
>>>>> At least, can someone point me to the right direction for the codebase
>>>>> organization?
>>>>>
>>>>>
>>>>> Giacomo
>>>>>
>>>>> _______________________________________________
>>>>> Beginners mailing list
>>>>> [email protected]
>>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Beginners mailing list
>>>>> [email protected]
>>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Beginners mailing list
>>>> [email protected]
>>>> http://www.haskell.org/mailman/listinfo/beginners
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130610/e9ca79bd/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 60, Issue 17
*****************************************