macOS
brew install purescriptlocal Homebrew formula metadata
brew / rank 4652
Strongly typed programming language that compiles to JavaScript. Version 0.15.16 via Homebrew; verified 2026-09-10. Also installable with nix: nix profile install nixpkgs#purescript.
install
brew install purescriptlocal Homebrew formula metadata
nix profile install nixpkgs#purescriptnixpkgs package indexes · purescript · source: raw.githubusercontent.com
scoop install main/purescriptScoop official bucket manifest trees · bucket/purescript.json · source: api.github.com
overview
Strongly typed programming language that compiles to JavaScript
history
PureScript is a small, strongly and statically typed functional programming language, written in and inspired by Haskell, that compiles to readable JavaScript and supports direct JavaScript interoperability.
Phil Freeman created PureScript in 2013 as a small, strongly typed functional language compiling to JavaScript. The language drew on Haskell while developing JavaScript-oriented features and conventions of its own, including row polymorphism, extensible records, typed effects, and a direct foreign-function interface.
The compiler and documentation subsequently became collaborative projects under the PureScript organization. The official documentation repository covers the language, compiler, ecosystem, migration guides, editor tooling, and related projects, while the community-maintained PureScript by Example book provides a practical learning path.
PureScript developed from a compiler into a compact language ecosystem with community-maintained core libraries, searchable package documentation through Pursuit, build and package tooling, editor integrations, and learning resources.
The official website recommends Spago as the build tool and npm for JavaScript dependencies. This pairing lets PureScript projects retain JavaScript interoperability while using package sets, reproducible builds, and language-specific tooling.
Developers use the purs compiler, normally through Spago, to build browser applications, Node.js services, command-line programs, and libraries. JavaScript APIs and npm packages are reached through the FFI, while generated package documentation is commonly published to Pursuit.
PureScript is important to language-package enthusiasts as a durable example of a Haskell-inspired language built specifically around JavaScript output and interoperability. Its ecosystem combines a native compiler, JavaScript FFI, package sets, a registry, Pursuit documentation, and Spago's Cargo-like project workflow.
Its appeal is less about replacing the JavaScript ecosystem than imposing a precise functional type system on projects that still need browser APIs, Node.js, and npm libraries.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
purs | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/purescript/purescript
install metadata
| Package key | brew:purescript |
|---|---|
| Version | 0.15.16 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/purescript |
| Homepage | https://www.purescript.org/ |
| Repository | https://github.com/purescript/purescript |
| Upstream docs | https://www.purescript.org/ |
| License | BSD-3-Clause |
| Source archive | https://github.com/purescript/purescript/archive/refs/tags/v0.15.16.tar.gz |
| Last updated | 2026-09-10T18:59:24Z |
| Pulse | updated |
| Dependencies | gmp |
| Build dependencies | cabal-install, ghc |
| Uses from macOS | libffi, ncurses |
| Bottle | available (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | purescript |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
purescript
nix profile install nixpkgs#purescriptmain/purescript
scoop install main/purescriptsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.