Jump to ratings and reviews
Rate this book

PureScript by Example

Rate this book
Learn functional programming for the web by solving practical problems using the PureScript programming language. "PureScript By Example" will motivate functional programming techniques like maps, folds, type classes and monads by applying them to real-world problems such as form validation, AJAX callbacks and drawing with the canvas.

235 pages, ebook

11 people are currently reading
91 people want to read

About the author

Phil Freeman

28 books3 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
14 (28%)
4 stars
30 (61%)
3 stars
4 (8%)
2 stars
1 (2%)
1 star
0 (0%)
Displaying 1 - 9 of 9 reviews
Profile Image for SY77.
29 reviews2 followers
February 26, 2016
Great, practical examples. Nice exercises. You will learn not only PureScript, but also functional programming.
10 reviews3 followers
March 1, 2021
A nice introduction to PureScript with reasonable exercises. The book is relatively short and covers what you need to know to get going.

I think I would have found the book harder to read if I didn't already have some exposure to Haskell. On the other hand, my prior exposure to Haskell also made some parts a bit slow, as I was already familiar with some of the concepts.

That is, while the book is targeted at people without prior exposure to Haskell, some of the explanations end up a little too terse to understand the concepts. Luckily, PureScript uses the same terminology as Haskell, and there is no shortage of (monad) tutorials to read that would be just about as applicable to PureScript.
42 reviews3 followers
July 9, 2017
A good intro into Purescript, but it will be a a bit fast moving for someone who hasn't been previously exposed to typed FP. If you find yourself stuck, I suggest going through the Haskellbook (Haskell from first principles), Haskell and Purescript are similar enough that you can mix and match learning resources.
Profile Image for Matvey Aksenov.
70 reviews7 followers
Read
August 8, 2024
I really don't want to shit on any Haskell-adjacent material, but I didn't find this book particularly good.

The text itself is reasonably understandable, it just lacks any solid identity. As an intro to FP the book is way too fast and I bet nearly impenetrable without a serious previous exposure to Haskell. As a survey of PureScript ecosystem it's too weak; there is some discussion around spago and purs and some mentions of external libraries for JSON and React, but I really have no idea what PureScript tools exist and which libraries are recommended. The examples in the later part of book also felt completely irrelevant to any real world purpose of a JS replacement (I don't think I've used QuickCheck for anything non-trivial ever and I certainly wouldn't want to have to invent free monad-based DSLs in my frontends.). Overall, I'm fairly disappointed.
1 review2 followers
January 7, 2018
Fast moving intro to FP. It will require some participation and effort by the reader to fully comprehend some of the material. The real world examples were helpful (especially the chapter on React). Writing style is concise and to the point. The code examples on github were really helpful to understanding the material.
30 reviews
July 1, 2018
Well written, but I can help the feeling it's missing support/maintenance. When reading it now, in 2018, I get a lot of basic errors - even the simplest "Hello World" example doesn't compile. Most likely something must have changed in the language in the meantime.

I think the idea with the language is nice, but as for now it's safer to learn a more stable language (e.g. Haskell).
Profile Image for pluton.
304 reviews10 followers
October 13, 2017
This is a great book about PureScript and thus about functional programming, even though not all FP concepts are explained deeply, so a newcomer may not understand everything. The book covers a lot of topics, including applicatives, monads, purescript FFI, property-based testing, and even free monads. The exercises are very helpful to understand the material, I wish there were more of them.
I read the older version while using the newer psc 0.11 compiler, so I had to fix a number of errors, but it wasn't hard (except for JSON parsing). It's available for free and you can also buy to support the author.
Profile Image for Simon Vindum.
11 reviews5 followers
January 9, 2016
This is a decent introduction to PureScript. Coming from a Haskell background the content was easy to follow. I am, however, quite certain that if I did not have experience with Haskell I would have had difficulty grasping the concepts from the explanations in this book alone. I think the book should expand on the explanations if it wants to target people unfamiliar with Haskell. On the other hand, PureScript and Haskell are so similar that one could probably read this book alongside Learn You A Haskell.
Displaying 1 - 9 of 9 reviews

Can't find what you're looking for?

Get help and learn more about the design.