
Hi, with [1,2] I can declare a list. Is there a similar notation for sets? Currently the only way I know is 'Set.fromList [1,2]' which is unhandy... Regards, Heinrich

At the moment, no. There has been a small push toward an OverloadedLists
extension, which would allow you to use list syntax for anything that has a
fromList (there would probably be an IsList class similar to the IsString
class). I'm not sure where that has gone. I know there were several
competing implementations.
On Thu, Feb 21, 2013 at 6:43 PM, Heinrich Ody
Hi,
with [1,2] I can declare a list. Is there a similar notation for sets? Currently the only way I know is 'Set.fromList [1,2]' which is unhandy...
Regards, Heinrich
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

It is implemented in GHC HEAD:
http://hackage.haskell.org/trac/ghc/wiki/OverloadedLists
On Fri, Feb 22, 2013 at 2:29 AM, David McBride
At the moment, no. There has been a small push toward an OverloadedLists extension, which would allow you to use list syntax for anything that has a fromList (there would probably be an IsList class similar to the IsString class). I'm not sure where that has gone. I know there were several competing implementations.
On Thu, Feb 21, 2013 at 6:43 PM, Heinrich Ody
wrote: Hi,
with [1,2] I can declare a list. Is there a similar notation for sets? Currently the only way I know is 'Set.fromList [1,2]' which is unhandy...
Regards, Heinrich
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi, I'm looking for one book that explains programming in Haskell. Is there a book that explains everything? It appears that there are many books, but each book is ~200 pages and each explains only basics. I'm looking for one big complete book. (Something like "Thinking in C++" or "C++ How to program" but in Haskell). Emanuel

2013/2/22 Emanuel Koczwara
Hi,
I'm looking for one book that explains programming in Haskell. Is there a book that explains everything? It appears that there are many books, but each book is ~200 pages and each explains only basics. I'm looking for one big complete book. (Something like "Thinking in C++" or "C++ How to program" but in Haskell).
I think that "Real World Haskell" (http://book.realworldhaskell.org/read/) is what you're looking for. Karol

Hi Emanuel
I haven't read the "Thinking in C++" so I can't compare it with any haskell
resource but here are some links which you can use for learning
1. http://learnyouahaskell.com/chapters
2. http://book.realworldhaskell.org/
On Fri, Feb 22, 2013 at 7:59 PM, Emanuel Koczwara wrote: Hi, I'm looking for one book that explains programming in Haskell. Is
there a book that explains everything? It appears that there are many
books, but each book is ~200 pages and each explains only basics. I'm If you are interested in NLP so try this one
http://nlpwp.org/book/index.xhtml. You can see more detailed list on
Haskell wiki
http://www.haskell.org/haskellwiki/Learning_Haskell.
Mukesh looking for one big complete book. (Something like "Thinking in C++" or
"C++ How to program" but in Haskell). Emanuel _______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners

On Fri, Feb 22, 2013 at 9:29 AM, Emanuel Koczwara wrote: I'm looking for one book that explains programming in Haskell. Is
there a book that explains everything? It appears that there are many No, because it would be bigger than you could lift and would contain a lot
of stuff you probably don't care about (are you really interested in how
Haskell interacts with category theory? As a working programmer, are you
interested in exploring the outer corners of type theory?)
--
brandon s allbery kf8nh sine nomine associates
allbery.b@gmail.com ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Hi,
No, because it would be bigger than you could lift and would contain a lot of stuff you probably don't care about (are you really interested in how Haskell interacts with category theory? As a working programmer, are you interested in exploring the outer corners of type theory?)
I know "Learn You a Haskell" and "Real World Haskell". They are very helpful, but there is number of topics not covered by these books. I want to learn Haskell in finite time, but having infinite number of resources will not help (books, wiki pages, tutorials, blogs, articles, I'm probably overestimating, but this is how it looks from beginner perspective). After "Learn You a Haskell" and "Real World Haskell" I was jumping from topic to topic at Wiki. And it blows my mind, I don't know what I don't know, and this is very bad. So I have a list of topics that I'm aware of, and I need to study them: Arrows Continuation passing style Existentially quantified types Generalised algebraic data-types Functional reactive programming Data structures (not lists, not maps and not binary trees, data structures in general) Dynamic types Heterogenous collections Phantom types Template Haskell Functional dependencies But I'm afraid that many things will be untouched with that approach. For example I've found that map :: (a -> b) -> [a] -> [b] is really map :: forall a b. (a -> b) -> [a] -> [b], I've found ~ (in pattern matching) and I've found a way to set a field with record syntax (val { feld1 = 'a', field2 = 0}). All this by clicking random links on wiki and google. The problem is, I don't have a roadmap. I was looking for a book that describes all what I need to know, and it points out everything what I need or could learn. If such a book doesn't exist, where can I find a list (finite) of "must read" resources to fully understund Haskell (or at last in 80%)? Emanuel

On Fri, Feb 22, 2013 at 11:05 AM, Emanuel Koczwara < poczta@emanuelkoczwara.pl> wrote:
No, because it would be bigger than you could lift and would contain a lot of stuff you probably don't care about (are you really interested in how Haskell interacts with category theory? As a working programmer, are you interested in exploring the outer corners of type theory?)
I know "Learn You a Haskell" and "Real World Haskell". They are very helpful, but there is number of topics not covered by these books.
Yes. Haskell touches on a *lot* of things, and it's not even remotely practical to try to digest all of them, especially as a beginner. You do not want to do this, and you do not *need* to do this.
I want to learn Haskell in finite time, but having infinite number of
Finite time means you're not going to learn everything, sorry. The world is bigger than you are. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Hi,
I know "Learn You a Haskell" and "Real World Haskell". They are very helpful, but there is number of topics not covered by these books.
Yes. Haskell touches on a *lot* of things, and it's not even remotely practical to try to digest all of them, especially as a beginner. You do not want to do this, and you do not *need* to do this.
I want to learn Haskell in finite time, but having infinite number of
Finite time means you're not going to learn everything, sorry. The world is bigger than you are.
I want to focus on Haskell not the whole world ;) I've seen "Faith, Evolution, and Programming Languages" (by Philip Wadler), he is talking about possible universes and logic ("I can't imagine a universe where modus ponens doesn't work..." - something like that), aliens and other cool stuff :D. And it looks like they are "discovering" Haskell rather than "developing" it. Am I right? If so, it really can be infinite. Anyway, thanks for your response, I will stick to http://www.haskell.org/haskellwiki/Learning_Haskell and I'll try to work out my learning roadmap. Emanuel

On Fri, Feb 22, 2013 at 11:31 AM, Emanuel Koczwara < poczta@emanuelkoczwara.pl> wrote:
that), aliens and other cool stuff :D. And it looks like they are "discovering" Haskell rather than "developing" it. Am I right? If so, it really can be infinite.
Haskell is simultaneously a production language and a functional programming research language, yes; it is expanding all the time. Even if by some chance you could learn everything currently known about it, the endpoint will have moved in the meantime. (This is why the Platform, intended for practical development, does not track the most recent GHC; *that* is intended for the research folks, may not be production-level stable, and will only make its way into the Platform for production folks to use later. Or sometimes not at all, as with ghc 7.2.x.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

It's a little dated, but I've found this post on stackoverflow to be a useful roadmap: http://stackoverflow.com/questions/1012573/getting-started-with-haskell On Feb 22, 2013, at 10:39 AM, Brandon Allbery wrote:
On Fri, Feb 22, 2013 at 11:31 AM, Emanuel Koczwara
wrote: that), aliens and other cool stuff :D. And it looks like they are "discovering" Haskell rather than "developing" it. Am I right? If so, it really can be infinite. Haskell is simultaneously a production language and a functional programming research language, yes; it is expanding all the time. Even if by some chance you could learn everything currently known about it, the endpoint will have moved in the meantime. (This is why the Platform, intended for practical development, does not track the most recent GHC; *that* is intended for the research folks, may not be production-level stable, and will only make its way into the Platform for production folks to use later. Or sometimes not at all, as with ghc 7.2.x.)
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi,
I find A Gentle Introduction to Haskell (
http://www.haskell.org/tutorial/haskell-98-tutorial.pdf )
quite comprehensive and well written counting of number of pages.
Thanks
Divyanshu Ranjan
On Fri, Feb 22, 2013 at 10:19 PM, Hollister Herhold
It's a little dated, but I've found this post on stackoverflow to be a useful roadmap:
http://stackoverflow.com/questions/1012573/getting-started-with-haskell
On Feb 22, 2013, at 10:39 AM, Brandon Allbery wrote:
On Fri, Feb 22, 2013 at 11:31 AM, Emanuel Koczwara < poczta@emanuelkoczwara.pl> wrote:
that), aliens and other cool stuff :D. And it looks like they are "discovering" Haskell rather than "developing" it. Am I right? If so, it really can be infinite.
Haskell is simultaneously a production language and a functional programming research language, yes; it is expanding all the time. Even if by some chance you could learn everything currently known about it, the endpoint will have moved in the meantime. (This is why the Platform, intended for practical development, does not track the most recent GHC; *that* is intended for the research folks, may not be production-level stable, and will only make its way into the Platform for production folks to use later. Or sometimes not at all, as with ghc 7.2.x.)
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi Emanuel
Added some links which I know but I would suggest to follow the links on
Haskell wiki.
On Fri, Feb 22, 2013 at 9:35 PM, Emanuel Koczwara wrote: Hi, No, because it would be bigger than you could lift and would contain a
lot of stuff you probably don't care about (are you really interested
in how Haskell interacts with category theory? As a working
programmer, are you interested in exploring the outer corners of type
theory?) I know "Learn You a Haskell" and "Real World Haskell". They are very
helpful, but there is number of topics not covered by these books. I want to learn Haskell in finite time, but having infinite number of
resources will not help (books, wiki pages, tutorials, blogs, articles,
I'm probably overestimating, but this is how it looks from beginner
perspective). After "Learn You a Haskell" and "Real World Haskell" I was jumping
from topic to topic at Wiki. And it blows my mind, I don't know what I
don't know, and this is very bad. So I have a list of topics that I'm
aware of, and I need to study them: Arrows http://ertes.de/new/tutorials/arrows.html
http://www.cse.chalmers.se/~rjmh/afp-arrows.pdf Continuation passing style http://www.haskellforall.com/2012/12/the-continuation-monad.html
http://en.wikibooks.org/wiki/Haskell/Continuation_passing_style Existentially quantified types http://en.wikibooks.org/wiki/Haskell/Existentially_quantified_types Generalised algebraic data-types http://en.wikibooks.org/wiki/Haskell/GADT Functional reactive programming
Data structures (not lists, not maps and not binary trees, data
structures in general) http://www.cs.cmu.edu/~rwh/theses/okasaki.pdf Dynamic types
Heterogenous collections
Phantom types
Template Haskell
Functional dependencies But I'm afraid that many things will be untouched with that approach.
For example I've found that map :: (a -> b) -> [a] -> [b] is really
map :: forall a b. (a -> b) -> [a] -> [b], I've found ~ (in pattern
matching) and I've found a way to set a field with record syntax (val
{ feld1 = 'a', field2 = 0}). All this by clicking random links on wiki
and google. The problem is, I don't have a roadmap. I was looking for a
book that describes all what I need to know, and it points out
everything what I need or could learn. If such a book doesn't exist, where can I find a list (finite) of
"must read" resources to fully understund Haskell (or at last in 80%)? Emanuel _______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners
participants (9)
-
Brandon Allbery
-
David McBride
-
divyanshu ranjan
-
Emanuel Koczwara
-
Heinrich Ody
-
Hollister Herhold
-
Karol Samborski
-
mukesh tiwari
-
Patrick Mylund Nielsen