Welcome to the PureScript wiki! This wiki is meant to be a collaborative effort, so please feel free to add/edit content where it is appropriate to do so.
Introduction
PureScript is a small strongly, statically typed compile-to-JS language with a number of interesting features, such as:
- Type Inference
- Higher Kinded Polymorphism
- Support for basic JavaScript types
- Extensible records
- Extensible effects
- Optimizer rules for generation of efficient JavaScript
- Pattern matching
- Simple FFI
- Modules
- Rank N Types
- Do Notation
- Tail-call elimination
- Type Classes
- Functional Dependencies
Libraries
Tools
Development Environments
Articles
- First Steps With PureScript - Solving Project Euler #1
- The Foreign Function Interface
- FFI Tips
- Generic Programming
- Handling Native Effects with the Eff Monad
- Test your JavaScript with QuickCheck
- PSCi
- Custom Type Errors
- PureScript Without Node
- 24 Days of PureScript 2016
Talks/Meetups
Language Guides
The PureScript Book is the recommended approach to learning the language, since it covers more material in greater depth. There is also a language guide, which is more useful as a reference:
Related Languages
- Related Projects
- Differences from Haskell
- Alternate compiler backends for various target languages
TL;DR
- Install PureScript
- Install Node.js:
brew install node
/pacman -S nodejs
/choco install nodejs
/Download Node.js - Install Pulp:
npm install -g pulp bower
- GO:
pulp init
,bower install --save purescript-tuples
,pulp build --to output.js
, etc.