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.
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
- First Steps With PureScript - Solving Project Euler #1
- The Foreign Function Interface
- Handling Native Effects with the Eff Monad
- FFI Tips
- Test your Javascript with QuickCheck
- PureScript Without Node
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 Projects
- Differences from Haskell
- Alternate compiler backends for various target languages
- 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
,pulp dep install purescript-tuples
,pulp build --to output.js
, etc.