with Scalaz
Free With Membership
With Membership
Free!
$13.37
EPUB
WEB
APP
6,713
Readers
355
Pages
About
This book is for the typical Scala developer, probably with a Java background, who is both sceptical and curious about the Functional Programming (FP) paradigm. This book justifies every concept with practical examples, including writing a web application.
Frequently Asked Questions
Q: How does it compare to the red book?
A: This book is blue.
Q: Where can I buy a physical copy?
A: Hardback books are available at Lulu (and budget Paperbacks too).
Q: Is this suitable for beginners?
A: No, this is an intermediate book. First read Programming in Scala or Essential Scala.
Q: I know Haskell, is this book for me?
A: You're not really the target audience. Also, I am so sorry.
Q: Why is the cover so ugly?
A: Because I love Geometrical Methods of Mathematical Physics.
Author
Chartered Mathematician, Haskell and Emacs hacker, Free Software / education zealot. Read an interview with Sam by Leanpub.
The Leanpub Podcast
Podcast
Translations
Contents
About This Book
Copyleft Notice
Thanks
Practicalities
1.Introduction
- 1.1Abstracting over Execution
- 1.2Pure Functional Programming
2.For Comprehensions
- 2.1Syntax Sugar
- 2.2Unhappy path
- 2.3Gymnastics
- 2.4Incomprehensible
3.Application Design
- 3.1Specification
- 3.2Interfaces / Algebras
- 3.3Business Logic
- 3.4Unit Tests
- 3.5Parallel
- 3.6Summary
4.Data and Functionality
- 4.1Data
- 4.2Functionality
- 4.3Modelling OAuth2
- 4.4Summary
5.Scalaz Typeclasses
- 5.1Agenda
- 5.2Appendable Things
- 5.3Objecty Things
- 5.4Mappable Things
- 5.5Variance
- 5.6Apply and Bind
- 5.7Applicative and Monad
- 5.8Divide and Conquer
- 5.9Plus
- 5.10Lone Wolves
- 5.11Co-things
- 5.12Bi-things
- 5.13Summary
6.Scalaz Data Types
- 6.1Type Variance
- 6.2Evaluation
- 6.3Memoisation
- 6.4Tagging
- 6.5Natural Transformations
- 6.6
Isomorphism - 6.7Containers
- 6.8Collections
- 6.9Summary
7.Advanced Monads
- 7.1Always in motion is the
Future - 7.2Effects and Side Effects
- 7.3Stack Safety
- 7.4Monad Transformer Library
- 7.5A Free Lunch
- 7.6
Parallel - 7.7
IO - 7.8Summary
8.Typeclass Derivation
- 8.1Running Examples
- 8.2
scalaz-deriving - 8.3Magnolia
- 8.4Shapeless
- 8.5Performance
- 8.6Summary
9.Wiring up the Application
- 9.1Overview
- 9.2
Main - 9.3Blaze
- 9.4Thank You
Typeclass Cheatsheet
Haskell
- Data
- Functions
- Typeclasses
- Records of Functions
- Modules
- Evaluation
- Next Steps
Third Party Licenses
- Scala License
- Scalaz License
Causes

Amazon Watch is a nonprofit organization founded in 1996 to protect the rainforest and advance the rights of indigenous peoples in the Amazon Basin. We partner with indigenous and environmental organizations in campaigns for human rights, corporate accountability and the preservation of the Amazon's ecological systems.
We envision a world that honors and values cultural and biological diversity and the critical contribution of tropical rainforests to our planet's life support system. We believe that indigenous self-determination is paramount, and see that indigenous knowledge, cultures and traditional practices contribute greatly to sustainable and equitable stewardship of the Earth. We strive for a world in which governments, corporations and civil society respect the collective rights of indigenous peoples to free, prior and informed consent over any activity affecting their territories and resources. We commit, in the spirit of partnership and mutual respect, to support our indigenous allies in their efforts to protect life, land, and culture in accordance with their aspirations and needs.
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.