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: Re: Selecting a GUI toolkit (Daniel Carrera)
2. Re: Selecting a GUI toolkit (Andy Stewart)
3. Re: Re: Selecting a GUI toolkit (Daniel Carrera)
4. Re: Simplifying a 'split' function (Brandon S. Allbery KF8NH)
5. Re: List Function (Brandon S. Allbery KF8NH)
6. Parsec tutorial (Patrick LeBoutillier)
7. Re: Parsec tutorial (Rick R)
8. Re: Parsec tutorial (aditya siram)
----------------------------------------------------------------------
Message: 1
Date: Thu, 30 Apr 2009 12:32:31 +0200
From: Daniel Carrera <[email protected]>
Subject: Re: [Haskell-beginners] Re: Selecting a GUI toolkit
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252; format=flowed
Thomas Davie wrote:
>> http://wxhaskell.sourceforge.net/images/controls-macosx2.png
>
> My link was on leopard actually, but that still looks significantly
> different to the natively designed UI.
Significantly different? They are practically identical.
>> Ok.. how do they behave? I bet you that they behave better than the
>> Gtk controls on OS X... ugh.
>
> I very much doubt that actually mac users in my experience notice when
> things are annoyingly slightly different from the norm a kind of
> uncanny valley effect, it's almost what you expect, but not quite. In
> the mean time, gtk being entirely non-OS X like running in X11 says
> "hey, I'm different, deal with it", and people do.
I am a Mac user and I disagree. I know several mac users who also
disagree. I remember that NeoOffice used to be much more popular than
OpenOffice.org on Mac because OOo used X11 and NeoOffice didn't, even
though it was clear that NeoOffice was not quite native. You are the
first mac user I meet that feels the way you feel. I have met quite a
few mac users who don't share your views.
X11 apps look like crap. And I disagree with the "uncanny valley" thing
because *native* OS X apps can look quite different. There isn't a
single uniform look for native OS X apps but at least two. Looking at
the screen shots on the wxHaskell website, if I saw that on my Mac, it
wouldn't cross my mind that it isn't native.
> Well yes, but then all macs come with 2 button mice, so *shrug*.
Mine doesn't and every mac I've seen doesn't, so don't dismiss me like
that, it's very rude. Also, in macs the command key is used a lot, you
can't just throw it away and "shrug" like you just did.
Daniel.
------------------------------
Message: 2
Date: Thu, 30 Apr 2009 17:18:42 +0800
From: Andy Stewart <[email protected]>
Subject: [Haskell-beginners] Re: Selecting a GUI toolkit
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Daniel Carrera <[email protected]> writes:
> Felipe Lessa wrote:
>> Although I don't have access to a Mac, people usually don't like
>> Gtk there. But there seems to be a native port somewhere that is
>> going to be merged into Gtk+ someday :).
>>
>> Now, good support today for Mac OS X would be my only reason to
>> go through the wxWindows route. I use Gtk+ because back in the
>> days that I tried wxWindows, it had a terrible appearence when
>> using Gtk as a backend, but probably things improved since then.
>
>
> Thanks. I guess one would have to try making a simple program with each and
> see. After all, one of
> the selling points of WX is that it's supposed to look right in all
> platforms. I have been sort of
> assuming that between WX and Gtk you might as well pick WX because WX uses
> Gtk in the platforms
> where Gtk looks right.
>
> The choice would be simpler if Gtk ran natively on Mac. Right now it looks
> horrible and it is hard
> to setup if you are not a technical person or don't have the latest OS X. At
> a *minimum* you'll need
> to install fink or mac ports and run the program from the terminal.
>
> Btw, I have read the first few chapters of the Gtk2Hs tutorial. The code
> looks extremely
> imperative. Even more than wxHaskell. I mean... initGUI,
> "widgetShowAll window", "mainGUI"...
Yep, very imperative, but it works.
At least gtk2hs is easiest way to build Haskell GUI program.
-- Andy
------------------------------
Message: 3
Date: Thu, 30 Apr 2009 13:16:18 +0200
From: Daniel Carrera <[email protected]>
Subject: Re: [Haskell-beginners] Re: Selecting a GUI toolkit
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Andy Stewart wrote:
>> Btw, I have read the first few chapters of the Gtk2Hs tutorial. The code
>> looks extremely
>> imperative. Even more than wxHaskell. I mean... initGUI,
>> "widgetShowAll window", "mainGUI"...
> Yep, very imperative, but it works.
> At least gtk2hs is easiest way to build Haskell GUI program.
Thanks.
It's hard to argue with "it works". I'd rather have something that works
on two platforms than something that fails on three platforms :-) Have
you any experience with wxHaskell? Do you find it harder to use? Or is
it more buggy?
Daniel.
------------------------------
Message: 4
Date: Thu, 30 Apr 2009 08:12:23 -0400
From: "Brandon S. Allbery KF8NH" <[email protected]>
Subject: Re: [Haskell-beginners] Simplifying a 'split' function
To: Ben Sanders <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
On Apr 29, 2009, at 16:12 , Ben Sanders wrote:
>> How about map pure. I do like the robot monkey though :)
>
> What is 'map pure'?
It uses the applicative functor (Control.Applicative) instance for
lists, just as "fmap return" uses the monad instance. Both work out
to the same thing.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url :
http://www.haskell.org/pipermail/beginners/attachments/20090430/c863206e/PGP-0001.bin
------------------------------
Message: 5
Date: Thu, 30 Apr 2009 08:29:25 -0400
From: "Brandon S. Allbery KF8NH" <[email protected]>
Subject: Re: [Haskell-beginners] List Function
To: Edward Z.Yang <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
On Apr 29, 2009, at 23:57 , Edward Z. Yang wrote:
> Excerpts from Brent Yorgey's message of Wed Apr 29 23:41:03 -0400
> 2009:
>> Prelude> sequence [ [1,2,3], [4,5,6] ]
>> [[1,4],[1,5],[1,6],[2,4],[2,5],[2,6],[3,4],[3,5],[3,6]]
>> Prelude> sequence [ [1,2], [3,4,5], [6,7] ]
>>
>> [[1,3,6],[1,3,7],[1,4,6],[1,4,7],[1,5,6],[1,5,7],[2,3,6],[2,3,7],
>> [2,4,6],[2,4,7]
>> ,[2,5,6],[2,5,7]]
>
> Interesting! According to Hoogle, the sequence function evaluates each
> monad and then collects the results. I know evaluating a list monad
> returns
> a list, but what do they mean by "collect"?
In the list monad, "collect" means "concatenate".
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url :
http://www.haskell.org/pipermail/beginners/attachments/20090430/4c69132c/PGP-0001.bin
------------------------------
Message: 6
Date: Thu, 30 Apr 2009 13:12:31 -0400
From: Patrick LeBoutillier <[email protected]>
Subject: [Haskell-beginners] Parsec tutorial
To: beginners <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hi all,
I'm looking for a Parsec tutorial that can get me started in writing a
simple SQL parser.
I can't seem to find a lot using Google. Does anyone have some
resources that could be helpful?
Thanks a lot,
Patrick
--
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada
------------------------------
Message: 7
Date: Thu, 30 Apr 2009 13:22:15 -0400
From: Rick R <[email protected]>
Subject: Re: [Haskell-beginners] Parsec tutorial
To: Patrick LeBoutillier <[email protected]>
Cc: beginners <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours
On Thu, Apr 30, 2009 at 1:12 PM, Patrick LeBoutillier <
[email protected]> wrote:
> Hi all,
>
> I'm looking for a Parsec tutorial that can get me started in writing a
> simple SQL parser.
> I can't seem to find a lot using Google. Does anyone have some
> resources that could be helpful?
>
>
> Thanks a lot,
>
> Patrick
> --
> =====================
> Patrick LeBoutillier
> Rosemère, Québec, Canada
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
--
We can't solve problems by using the same kind of thinking we used when we
created them.
- A. Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.haskell.org/pipermail/beginners/attachments/20090430/2b845d6b/attachment-0001.htm
------------------------------
Message: 8
Date: Thu, 30 Apr 2009 12:44:45 -0500
From: aditya siram <[email protected]>
Subject: Re: [Haskell-beginners] Parsec tutorial
To: Rick R <[email protected]>
Cc: beginners <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
I learnt to use Parsec from Real World Haskell [1].
hth,
deech
[1] http://book.realworldhaskell.org/read/using-parsec.html
On Thu, Apr 30, 2009 at 12:22 PM, Rick R <[email protected]> wrote:
> http://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours
>
>
> On Thu, Apr 30, 2009 at 1:12 PM, Patrick LeBoutillier <
> [email protected]> wrote:
>
>> Hi all,
>>
>> I'm looking for a Parsec tutorial that can get me started in writing a
>> simple SQL parser.
>> I can't seem to find a lot using Google. Does anyone have some
>> resources that could be helpful?
>>
>>
>> Thanks a lot,
>>
>> Patrick
>> --
>> =====================
>> Patrick LeBoutillier
>> Rosemère, Québec, Canada
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>
>
>
> --
> We can't solve problems by using the same kind of thinking we used when we
> created them.
> - A. Einstein
>
> _______________________________________________
> 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/20090430/e4b94252/attachment.htm
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 10, Issue 35
*****************************************