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: Looking for a 20/min day study partner (Emanuel Koczwara)
2. Re: Looking for a 20/min day study partner (Gilberto Garcia)
3. Re: Get resource from number of possible sources (David McBride)
4. Re: Looking for a 20/min day study partner (Rohit kumar)
5. Re: Looking for a 20/min day study partner (Bryce Verdier)
6. Re: Looking for a 20/min day study partner (Emanuel Koczwara)
7. Re: Looking for a 20/min day study partner (Heath Matlock)
8. Re: Looking for a 20/min day study partner (Darren Grant)
----------------------------------------------------------------------
Message: 1
Date: Tue, 29 Jan 2013 14:09:25 +0100
From: Emanuel Koczwara <[email protected]>
Subject: Re: [Haskell-beginners] Looking for a 20/min day study
partner
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID: <1359464965.1618.1.camel@emanuel-Dell-System-Vostro-3750>
Content-Type: text/plain
Hi,
I'm interested.
Emanuel
------------------------------
Message: 2
Date: Tue, 29 Jan 2013 11:21:42 -0200
From: Gilberto Garcia <[email protected]>
Subject: Re: [Haskell-beginners] Looking for a 20/min day study
partner
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CALPvUBFJwz2cvnhFa2eOXNwpoASgyvJUCVZqKJ7LhvbU3j=h...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
+1
On Tue, Jan 29, 2013 at 11:09 AM, Emanuel Koczwara <
[email protected]> wrote:
> Hi,
>
> I'm interested.
>
> Emanuel
>
>
>
> _______________________________________________
> 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/20130129/ef916ec3/attachment-0001.htm>
------------------------------
Message: 3
Date: Tue, 29 Jan 2013 10:14:35 -0500
From: David McBride <[email protected]>
Subject: Re: [Haskell-beginners] Get resource from number of possible
sources
To: [email protected]
Message-ID:
<can+tr40_eftp1vb0km-dy842m+rmjdmowxpholgkf_5okht...@mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"
You might try
import Data.Maybe (catMaybes, listToMaybe)
fmap (listToMaybe . catMaybes) . sequence $ [tryA, tryA', tryA'']
listToMaybe is another word for safeHead or headMay, ie head that returns a
maybe if the list is empty.
or alternatively
fmap (maybe defaultA id . listToMaybe . catMaybes) . sequence $ [tryA,
tryA', tryA'']
to return a default value if you fail to get A.
On Tue, Jan 29, 2013 at 5:30 AM, Libor Wagner <[email protected]> wrote:
> Hi,
>
> say I have a number of functions tryGetA, tryGetA', tryGetA'' ? with the
> type tryGetA :: IO (Maybe A), what I want is to get A, trying these
> function one by one until a get Just a. The first shot code I came up with
> is using if:
>
> getA :: IO A
> getA = do
> a <- tryGetA
> if isJust a
> then return $ fromJust a
> else do
> a' <- tryGetA'
> if isJust a
> then return $ fromJust a'
> ?
>
> there would be some default value at the end, this looks really ugly so I
> have tried another shot:
>
> firstJust :: a -> [Maybe a] -> a
> firstJust a [] = a
> firstJust a (x:xs) = if isJust x
> then fromJust x
> else firstJust a xs
>
> getA :: IO A
> getA = do
> r <- sequence [tryGetA, tryGetA', tryGetA'', ?]
> return $ firstJust "OK" r
>
> which is a lot better, but I will appreciate any comment or suggestion.
>
> Thanks,
> Libor
>
>
>
> _______________________________________________
> 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/20130129/0a64a6c8/attachment-0001.htm>
------------------------------
Message: 4
Date: Tue, 29 Jan 2013 21:41:40 +0530
From: Rohit kumar <[email protected]>
Subject: Re: [Haskell-beginners] Looking for a 20/min day study
partner
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<cab_7rjpauxf-nyqnxpyxdf6fz-pxdpvv9hqn_ad4iuj1bv_...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
I am in
On 1/29/13, Gilberto Garcia <[email protected]> wrote:
> +1
>
>
> On Tue, Jan 29, 2013 at 11:09 AM, Emanuel Koczwara <
> [email protected]> wrote:
>
>> Hi,
>>
>> I'm interested.
>>
>> Emanuel
>>
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>
------------------------------
Message: 5
Date: Tue, 29 Jan 2013 09:35:10 -0800
From: Bryce Verdier <[email protected]>
Subject: Re: [Haskell-beginners] Looking for a 20/min day study
partner
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
I'm also following along with that class. Maybe a study group (skype/g+
hangout) based on the slides might be a worthwhile thing to do.
Otherwise I'm interested.
Bryce
On 01/28/2013 09:11 PM, Darren Grant wrote:
>
> I might be interested. How were you thinking of coordinating?
>
> I am also following along here:
>
> http://ureddit.com/class/69577/introduction-to-haskell
>
> Cheers,
> Darren
>
> On 2013-01-28 8:01 PM, "Heath Matlock" <[email protected]
> <mailto:[email protected]>> wrote:
>
> Would anyone be willing to spend 20 minutes each learning Haskell
> and the concepts surrounding it?
>
> _______________________________________________
> Beginners mailing list
> [email protected] <mailto:[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/20130129/cc77e85f/attachment-0001.htm>
------------------------------
Message: 6
Date: Tue, 29 Jan 2013 18:47:27 +0100
From: Emanuel Koczwara <[email protected]>
Subject: Re: [Haskell-beginners] Looking for a 20/min day study
partner
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID: <1359481647.1618.9.camel@emanuel-Dell-System-Vostro-3750>
Content-Type: text/plain; charset="UTF-8"
Hi,
These slides are very basic, but what approach should we take for
group study? Maybe we should create own slides? Every participant can
create a short presentation about something. We can make a list of
topics. IMHO, teaching is the best way to understund a topic. Can
anybody suggest different approach?
Emanuel
------------------------------
Message: 7
Date: Tue, 29 Jan 2013 21:14:36 -0600
From: Heath Matlock <[email protected]>
Subject: Re: [Haskell-beginners] Looking for a 20/min day study
partner
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<camd2kocymtpnd0c5huezsk8xq33ff0__0joni64zc6uq_bq...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I've sent individual responses to everyone who responded. I'm fine with
meeting individually if someone prefers that, and I'm also fine with a
group hangout. I'm ready to start tomorrow through whichever communication
channel
On Tue, Jan 29, 2013 at 11:47 AM, Emanuel Koczwara <
[email protected]> wrote:
> Hi,
>
> These slides are very basic, but what approach should we take for
> group study? Maybe we should create own slides? Every participant can
> create a short presentation about something. We can make a list of
> topics. IMHO, teaching is the best way to understund a topic. Can
> anybody suggest different approach?
>
> Emanuel
>
>
>
> _______________________________________________
> 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/20130129/b171e23d/attachment-0001.htm>
------------------------------
Message: 8
Date: Tue, 29 Jan 2013 19:58:59 -0800
From: Darren Grant <[email protected]>
Subject: Re: [Haskell-beginners] Looking for a 20/min day study
partner
To: Haskell Beginners <[email protected]>
Message-ID:
<CA+jD6SjJkrU_Ro3BE1cfF736PJfLMhr=R55W=OTS=5V4Q=i...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I still find I'm learning a lot from the questions posed in the
introduction lecture. It is turning into a broad exploration of
fundamentals, and I suspect the structure is well planned. Will see.
On 2013-01-29 9:48 AM, "Emanuel Koczwara" <[email protected]> wrote:
> Hi,
>
> These slides are very basic, but what approach should we take for
> group study? Maybe we should create own slides? Every participant can
> create a short presentation about something. We can make a list of
> topics. IMHO, teaching is the best way to understund a topic. Can
> anybody suggest different approach?
>
> Emanuel
>
>
>
> _______________________________________________
> 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/20130129/7479429a/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 55, Issue 35
*****************************************