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. Abstracting Data.List (Giacomo Tesio)
2. Re: Abstracting Data.List (Nadir Sampaoli)
3. Why Functional Programming Matters <-- this will make you
smarter (Part 2) (Costello, Roger L.)
4. Re: Abstracting Data.List (Giacomo Tesio)
----------------------------------------------------------------------
Message: 1
Date: Fri, 31 May 2013 10:56:45 +0200
From: Giacomo Tesio <[email protected]>
Subject: [Haskell-beginners] Abstracting Data.List
To: "[email protected]" <[email protected]>
Message-ID:
<cahl7psfj+t6gabieb0mlukfzauro0g32zzmdkewc0ukxvr1...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I'm looking for a class abstracting Data.List. I mean something that enable
the use of say head, map, take and so on into different kind of types.
Is there already something like that?
Giacomo
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130531/737328f7/attachment-0001.htm>
------------------------------
Message: 2
Date: Fri, 31 May 2013 11:34:34 +0200
From: Nadir Sampaoli <[email protected]>
Subject: Re: [Haskell-beginners] Abstracting Data.List
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<cafywtdrv9wjb51xvpsebrsfrdpihwp8yyhivemkza-e92es...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi, I'm very new to Haskell and I don't know about head, take, etc. but I
think the `Functor` class (and its `fmap` function) provides the
abstraction for `map` (which, in my understanding, can be considered the
list-specific `fmap`).
2013/5/31 Giacomo Tesio <[email protected]>
> I'm looking for a class abstracting Data.List. I mean something that
> enable the use of say head, map, take and so on into different kind of
> types.
>
> Is there already something like that?
>
>
> Giacomo
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
--
Nadir
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130531/30a82ade/attachment-0001.htm>
------------------------------
Message: 3
Date: Fri, 31 May 2013 09:39:44 +0000
From: "Costello, Roger L." <[email protected]>
Subject: [Haskell-beginners] Why Functional Programming Matters <--
this will make you smarter (Part 2)
To: "[email protected]" <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="us-ascii"
Hi Folks,
I completed the second half of my summary of John Hughes' outstanding paper
titled, Why Functional Programming Matters.
This second half describes the importance of lazy evaluation and function
composition.
I converted all of Hughes' examples into Haskell.
It contains a lengthy example showing how to implement the game of tic-tac-toe,
and how lazy evaluation enables the implementation of tic-tac-toe to have a
level of modularity that would otherwise not be attainable. (Modularity is
important. Hughes writes, "Modularity is the key to successful programming")
Here is my summary:
http://www.xfront.com/Haskell/Why-Functional-Programming-Matters-Part-2.pdf
/Roger
------------------------------
Message: 4
Date: Fri, 31 May 2013 11:50:35 +0200
From: Giacomo Tesio <[email protected]>
Subject: Re: [Haskell-beginners] Abstracting Data.List
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<cahl7psf7bqawgxw2fp9yjfi3qqdnaw-0m9wwql2m3-nmq-q...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
fmap is a much more general concept.. I just want to be able to use map (or
another term, like project) over "enhanced" lists. Such "enhanced" lists
aren't Monads, btw, because I can't write a meaningful return/unit
function: to put the list in context, I always need a context to be
provided.
Giacomo
On Fri, May 31, 2013 at 11:34 AM, Nadir Sampaoli <[email protected]>wrote:
> Hi, I'm very new to Haskell and I don't know about head, take, etc. but I
> think the `Functor` class (and its `fmap` function) provides the
> abstraction for `map` (which, in my understanding, can be considered the
> list-specific `fmap`).
>
>
> 2013/5/31 Giacomo Tesio <[email protected]>
>
>> I'm looking for a class abstracting Data.List. I mean something that
>> enable the use of say head, map, take and so on into different kind of
>> types.
>>
>> Is there already something like that?
>>
>>
>> Giacomo
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>
>
> --
> Nadir
>
> _______________________________________________
> 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/20130531/3337bf2f/attachment-0001.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 59, Issue 43
*****************************************