PureScript (original) (raw)

PureScript

A strongly-typed functional programming language that compiles to JavaScript

Benefits

Hello, PureScript!

import Prelude import Effect.Console (log)

greet :: String -> String greet name = "Hello, " <> name <> "!"

main = log (greet "World")

Get the compiler

Binaries

Precompiled binaries are available for OSX, Linux, and Windows from the latest release page on GitHub.

npm

npm install -g purescript

(Installation via npm requires Node version 8 or later)

Tools

The recommended build tool for PureScript is Spago, which can be installed using npm:

npm install -g spago

You might like to install some of theseadditional tools and editor plugins.

NPM is recommended for managing JavaScript dependencies in your project.