Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/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.  another type problem (Roelof Wobben)
   2. Re:  another type problem (Brandon Allbery)
   3. Re:  another type problem (Roelof Wobben)
   4. Re:  another type problem (Brandon Allbery)
   5. Re:  another type problem (Roelof Wobben)
   6. Re:  another type problem (Alexey Shmalko)


----------------------------------------------------------------------

Message: 1
Date: Tue, 12 May 2015 16:00:01 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] another type problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/3543f742/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 12 May 2015 10:03:33 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] another type problem
Message-ID:
        <cakfcl4x-gjoxccr_zqczfc95p8uh4zlcqkwnxm9yo8i0otr...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Tue, May 12, 2015 at 10:00 AM, Roelof Wobben <[email protected]> wrote:

> init' (x:xs) = Just (x: (init' xs))
>

Remember that your init' produces Maybe [a], not [a].

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/4eedcb39/attachment-0001.html>

------------------------------

Message: 3
Date: Tue, 12 May 2015 16:11:07 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] another type problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/450b4819/attachment-0001.html>

------------------------------

Message: 4
Date: Tue, 12 May 2015 10:16:56 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] another type problem
Message-ID:
        <cakfcl4xb0hhk2wyeyc9hiwnuvo_2lz3tfq9opcxxoxt-yba...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Tue, May 12, 2015 at 10:11 AM, Roelof Wobben <[email protected]> wrote:

>  I do not understand what you are saying to me.
>
> I know that init produces a Maybe [a] . That is why I did put a Just
> before it.
>

You are invoking it again though, and using its result as if it produces
[a] instead of Maybe [a].

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/b212d62b/attachment-0001.html>

------------------------------

Message: 5
Date: Tue, 12 May 2015 16:21:47 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] another type problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/f2703e6e/attachment-0001.html>

------------------------------

Message: 6
Date: Tue, 12 May 2015 14:24:08 +0000
From: Alexey Shmalko <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] another type problem
Message-ID:
        <cafc2pc5dkojdfxwhddfk_8n05o59aj7_zrp74w4t3wk2ewb...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Before cons'ing the result of init', you should check whether it's Just or
Nothing. What you're doing now is something along the line with 5 : Just 3
-- this won't typecheck.

On Tue, May 12, 2015 at 5:22 PM Roelof Wobben <[email protected]> wrote:

>  Brandon Allbery schreef op 12-5-2015 om 16:16:
>
>  On Tue, May 12, 2015 at 10:11 AM, Roelof Wobben <[email protected]> wrote:
>
>>  I do not understand what you are saying to me.
>>
>> I know that init produces a Maybe [a] . That is why I did put a Just
>> before it.
>>
>
>  You are invoking it again though, and using its result as if it produces
> [a] instead of Maybe [a].
>
>  --
>  brandon s allbery kf8nh                               sine nomine
> associates
> [email protected]
> [email protected]
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
>
> _______________________________________________
> Beginners mailing 
> [email protected]http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
> What is then the right way to do. I still do not understand what you are
> trying to make clear to me.
>
>
> Roelof
>
>
>
>
> ------------------------------
>   [image: Avast logo] <http://www.avast.com/>
>
> Dit e-mailbericht is gecontroleerd op virussen met Avast
> antivirussoftware.
> www.avast.com
>
>  _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150512/88ef2662/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 83, Issue 20
*****************************************

Reply via email to