Home Programming • Download Learn You a Haskell for Great Good!: A Beginner's Guide by Miran Lipovaca PDF

Download Learn You a Haskell for Great Good!: A Beginner's Guide by Miran Lipovaca PDF

By Miran Lipovaca

Retail reproduction, bought via No Starch

It's all within the identify: Learn You a Haskell for excellent Good! is a hilarious, illustrated consultant to this complicated practical language. full of the author's unique paintings, popular culture references, and most significantly, precious instance code, this publication teaches useful basics in a fashion you by no means inspiration possible.

You'll begin with the child stuff: uncomplicated syntax, recursion, varieties and kind sessions. Then as soon as you've acquired the fundamentals down, the genuine black belt master-class starts: you'll learn how to use applicative functors, monads, zippers, and all of the different legendary Haskell constructs you've in basic terms examine in storybooks.

As you're employed your manner in the course of the author's resourceful (and sometimes insane) examples, you'll examine to:
* chuckle within the face of negative effects as you wield in basic terms useful programming techniques
* Use the magic of Haskell's "laziness" to play with limitless units of data
* set up your courses by means of developing your personal varieties, variety periods, and modules
* Use Haskell's dependent input/output process to proportion the genius of your courses with the surface world

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

Show description

Read or Download Learn You a Haskell for Great Good!: A Beginner's Guide PDF

Best programming books

Advanced Qt Programming: Creating Great Software with C++ and Qt 4

Grasp Qt's strongest APIs, styles, and improvement Practices

Qt has advanced right into a remarkably strong resolution for cross-platform computing device, internet, and cellular improvement. despite the fact that, even the main skilled Qt programmers basically use a fragment of its services. additionally, sensible information regarding Qt's most up-to-date gains has been scarce—until now.

Advanced Qt Programming exhibits builders precisely the best way to take complete benefit of Qt four. 5's and Qt four. 6's Most worthy new APIs, software styles, and improvement practices. Authored via Qt specialist Mark Summerfield, this publication concentrates on suggestions that provide the main energy and suppleness with the least further complexity.

Summerfield focuses specifically on model/view and graphics/view programming, hybrid desktop/Web functions, threading, and functions incorporating media and wealthy textual content. all through, he provides sensible, downloadable code examples, all established on home windows, Mac OS X, and Linux utilizing Qt four. 6 (and so much verified on Qt four. five) and designed to count on destiny models of Qt. The book

Walks via utilizing Qt with WebKit to create cutting edge hybrid desktop/Internet applications

Shows the way to use the Phonon framework to construct robust multimedia applications

Presents state of the art options for utilizing model/view desk and tree versions, QStandardItemModels, delegates, and perspectives, and for growing customized desk and tree versions, delegates, and views

Explains tips on how to write greater threaded courses with the QtConcurrent module and with the QThread class

Includes specified insurance of constructing wealthy textual content editors and documents

Thoroughly covers graphics/view programming: structure, home windows, widgets, layouts, scenes, and more

Introduces Qt four. 6's strong animation and kingdom computing device frameworks

The Joy of Clojure (2nd Edition)

The enjoyment of Clojure, moment variation is a deep account of the Clojure language. totally up-to-date for Clojure 1. 6, this new version is going past the syntax to teach you the way to jot down fluent Clojure code. You'll examine practical and declarative ways to programming and should grasp options that make Clojure based and effective.

Make a 2D RPG in a Weekend: With RPG Maker VX Ace

Make a second RPG in a Weekend indicates you ways to create your personal dungeon crawler online game in RPG Maker VX Ace in one weekend. the total technique, from begin to end, is roofed inside this e-book. you'll find a number of dungeon maps and occasions, all damaged down to your convenience.

One of the toughest components of online game improvement is de facto completing a online game, however it is usually essentially the most vital steps to be able to turning into a video game developer. in case you have but to complete a online game, this ebook provide you with the arrogance and assets you want to ultimately have the ability to create your personal RPG. as soon as you've accomplished the sport during this booklet, you'll be capable of adjust it up to you're keen on, including new monsters and quests, and you'll have the abilities to head directly to create your moment online game all on your own. one of the subject matters coated during this e-book are:
• developing numerous varieties of enemy encounters through using the eventing system.
• making a specified quarter that permits the participant to select their personality of selection rather than being compelled to play a selected character.
• shrewdpermanent makes use of of occasions to create goods that let the participant to come back to city immediately and summon automobiles to their facet.

Using Docker: Developing and Deploying Software with Containers

Docker packing containers supply less complicated, speedier, and extra powerful tools for constructing, dispensing, and operating software program than formerly on hand. With this hands-on advisor, you'll study why bins are so vital, what you'll achieve by means of adopting Docker, and the way to make it a part of your improvement method.

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

Example text

However, patterns that include the : character will match only against lists of length one or more. " head' (x:_) = x 38 Chapter 3 After loading the function, we can test it, like this: ghci> head' [4,5,6] 4 ghci> head' "Hello" 'H' Notice that if we want to bind something to several variables (even if one of them is just _), we must surround them in parentheses so Haskell can properly parse them. Also notice the use of the error function. This function takes a string as an argument and generates a runtime error using that string.

This function will berate you in different ways depending on your body mass index (BMI). Your BMI is calculated by dividing your weight (in kilograms) by your height (in meters) squared. 5, you’re considered underweight. 5 to 25, you’re considered normal. A BMI of 25 to 30 is overweight, and more than 30 is obese. 0 = "You're supposedly normal. 0 = "You're fat! " A guard is indicated by a pipe character (|), followed by a Boolean expression, followed by the function body that will be used if that expression evaluates to True.

Apple", "orange", "cherry", "mango"] [(1,"apple"),(2,"orange"),(3,"cherry"),(4,"mango")] Finding the Right Triangle Let’s wrap things up with a problem that combines tuples and list comprehensions. We’ll use Haskell to find a right triangle that fits all of these conditions: • The lengths of the three sides are all integers. • The length of each side is less than or equal to 10. • The triangle’s perimeter (the sum of the side lengths) is equal to 24. A triangle is a right triangle if one of its angles is a right angle (a 90-degree angle).

Download PDF sample

Rated 4.59 of 5 – based on 45 votes