TIDE
Languages

PureScript

Installing PureScript on Ubuntu in TIDE

PureScript

PureScript is a strongly-typed, purely-functional programming language that compiles to JavaScript.

Installation

PureScript requires Node.js and npm. You can install Node.js and the PureScript compiler (purs) alongside its package manager and build tool (spago) via npm:

apt update
apt install -y nodejs npm
npm install -g purescript spago

Verification

Check the installed versions:

purs --version
spago --version

Compilation & Execution

Create a hello.purs file:

module Main where

import Effect (Effect)
import Effect.Console (log)

main :: Effect Unit
main = log "Hello, PureScript in TIDE!"

Initialize a Spago project or run directly using spago:

spago init
spago run

Official Resources

On this page