Learn You a Haskell for Great Good!: A Beginner's Guide

Learn You a Haskell for Great Good!: A Beginner's Guide

It's all within the identify: Learn You a Haskell for excellent Good! is a hilarious, illustrated advisor to this advanced practical language. jam-packed with the author's unique art, popular culture references, and most significantly, invaluable instance code, this publication teaches practical basics in a fashion you by no means idea possible.

You'll begin with the child stuff: uncomplicated syntax, recursion, forms and sort periods. Then as soon as you have the fundamentals down, the genuine black belt master-class starts: you are going to discover ways to use applicative functors, monads, zippers, and the entire different legendary Haskell constructs you will have basically examine in storybooks.

As you're employed your means in the course of the author's inventive (and sometimes insane) examples, you will examine to:

  • Laugh within the face of unwanted effects as you wield merely sensible programming techniques
  • Use the magic of Haskell's "laziness" to play with countless units of data
  • Organize your courses through growing your personal kinds, variety periods, and modules
  • Use Haskell's based input/output approach to proportion the genius of your courses with the surface world

Short of consuming the author's mind, you won't discover a greater solution to study this robust language than interpreting Learn You a Haskell for nice Good!

Excerpt from the Introduction

Haskell is enjoyable, and that’s what it’s all about!

This ebook is aimed toward those who have adventure programming in valuable languages—such as C++, Java, and Python—and now are looking to test Haskell. yet whether you don’t have any major programming adventure, I’ll guess a wise individual such as you may be in a position to stick with alongside and research Haskell.

My first response to Haskell was once that the language was once simply too bizarre. yet after you have over that preliminary hurdle, it was once delicate crusing. whether Haskell turns out unusual to you at first, don’t quit. studying Haskell is nearly like studying to application for the 1st time another time. It’s enjoyable, and it forces you to imagine differently.

If you ever get relatively caught, the IRC channel #haskell on the freenode community is a brilliant position to invite questions. the folk there are usually great, sufferer, and knowing. They’re a superb source for Haskell newbies.

So, what is Haskell?

Haskell is a purely sensible programming language.

In imperative programming languages, you provide the pc a chain of initiatives, which it then executes. whereas executing them, the pc can switch country. for example, you could set the variable a to five after which perform a little stuff that will switch the worth of a. There also are flow-control buildings for executing directions a number of occasions, corresponding to for and whereas loops.

Purely sensible programming is various. 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 host is the made from each integer from 1 to that quantity or that the sum of a listing 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.

Show sample text content

Download sample