macOS
brew install purescriptlocal Homebrew formula metadata
安装
brew install purescriptlocal Homebrew formula metadata
nix profile install nixpkgs#purescriptnixpkgs package indexes · purescript · 来源: raw.githubusercontent.com
scoop install main/purescriptScoop official bucket manifest trees · bucket/purescript.json · 来源: api.github.com
概览
Strongly typed programming language that compiles to JavaScript
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
purs | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/purescript/purescript
安装元数据
| 软件包键 | brew:purescript |
|---|---|
| 版本 | 0.15.16 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/purescript |
| 主页 | https://www.purescript.org/ |
| 仓库 | https://github.com/purescript/purescript |
| 上游文档 | https://www.purescript.org/ |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/purescript/purescript/archive/refs/tags/v0.15.16.tar.gz |
| 最后更新 | 2026-09-10T18:59:24Z |
| Pulse | updated |
| 依赖 | gmp |
| 构建依赖 | cabal-install, ghc |
| macOS 提供的库 | libffi, ncurses |
| Bottle | 可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
purescript
nix profile install nixpkgs#purescriptmain/purescript
scoop install main/purescript来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.