It's all within the identify: Learn You a Haskell for excellent Good! is a hilarious, illustrated consultant to this complicated sensible language. choked with the author's unique art, popular culture references, and most significantly, helpful instance code, this ebook teaches sensible basics in a manner you by no means inspiration possible.
You'll begin with the child stuff: easy syntax, recursion, varieties and kind sessions. Then as soon as you might have the fundamentals down, the genuine black belt master-class starts: you will learn how to use applicative functors, monads, zippers, and all of the different legendary Haskell constructs you might have simply examine in storybooks.
As you're employed your method during the author's creative (and sometimes insane) examples, you will examine to:
- Laugh within the face of unintended effects as you wield merely useful programming techniques
- Use the magic of Haskell's "laziness" to play with limitless units of data
- Organize your courses via developing your personal forms, style sessions, and modules
- Use Haskell's based input/output approach to percentage the genius of your courses with the skin world
Short of consuming the author's mind, you won't discover a greater method to research this strong language than analyzing Learn You a Haskell for excellent Good!
Excerpt from the Introduction
Haskell is enjoyable, and that’s what it’s all about!
This ebook is geared toward those who have adventure programming in valuable languages—such as C++, Java, and Python—and now are looking to attempt Haskell. yet no matter if you don’t have any major programming adventure, I’ll wager a sensible individual such as you should be in a position to keep on with alongside and study Haskell.
My first response to Haskell used to be that the language used to be simply too bizarre. yet once you have over that preliminary hurdle, it used to be tender crusing. no matter if Haskell turns out unusual to you at first, don’t surrender. studying Haskell is nearly like studying to application for the 1st time once more. It’s enjoyable, and it forces you to imagine differently.
If you ever get rather caught, the IRC channel #haskell on the freenode community is a brilliant position to invite questions. the folk there are usually great, sufferer, and realizing. They’re a good source for Haskell newbies.
So, what is Haskell?
Haskell is a purely useful programming language.
In imperative programming languages, you provide the pc a series of initiatives, which it then executes. whereas executing them, the pc can swap country. for example, you could set the variable a to five after which perform a little stuff that may switch the price of a. There also are flow-control buildings for executing directions a number of instances, reminiscent of for and whereas loops.
Purely useful programming is diverse. You don’t inform the pc what to do—you inform it what stuff is. for example, you could inform the pc that the factorial of a bunch is the manufactured from each integer from 1 to that quantity or that the sum of an inventory of numbers is the 1st quantity plus the sum of the rest numbers. you could convey either one of those operations as functions.
> learn the Introduction (PDF) in its entirety.