hx
Haskell, finally fast
A fast, opinionated, batteries-included toolchain for Haskell. One command to build, test, run, and ship.
curl -fsSL https://raw.githubusercontent.com/raskell-io/hx/main/install.sh | shOr install via GitHub Releases or cargo install hx-cli
Why hx?
Everything you need to build Haskell projects. No more juggling cabal, stack, and ghcup.
Batteries included
Build, test, run, format, lint, profile, and publish. Watch mode, coverage reports, and IDE setup. Everything in one tool.
Managed toolchains
Automatic GHC installation and version switching. Pin versions per-project in hx.toml. No ghcup required.
Deterministic builds
TOML lockfiles with fingerprint verification. Every build is reproducible across machines and CI. No more "works on my machine".
Excellent errors
Actionable error messages with fix suggestions. hx doctor diagnoses setup issues and tells you exactly how to fix them.
Drop-in compatible
Works with existing .cabal files and Hackage. Import from Stack or Cabal projects. Your workflow stays the same, just better.
Extensible
Plugin system with Steel (Scheme) for custom workflows. Pre/post build hooks. Nix integration. Generate Homebrew formulas and install scripts.
Blazingly fast
Native builds bypass Cabal overhead for simple projects
Why hx?
Haskell’s existing build tools are powerful but slow. hx brings Rust-level performance to Haskell package management.
Features
- Fast dependency resolution — Parallel downloads and caching
- Drop-in replacement — Works with existing
.cabalfiles - Project management — Create, build, and manage Haskell projects
- Modern CLI — Clean interface with helpful error messages
Quick Start
# Install hx
curl -fsSL https://get.raskell.io/hx | sh
# Create a new project
hx new my-project
cd my-project
# Build and run
hx build
hx runComparison
| Feature | hx | cabal | stack |
|---|---|---|---|
| Written in | Rust | Haskell | Haskell |
| Parallel downloads | ✓ | ✓ | ✓ |
| Incremental builds | ✓ | ✓ | ✓ |
| Startup time | ~5ms | ~200ms | ~300ms |
Part of the raskell.io ecosystem
hx is designed to work seamlessly with bhc, the Basel Haskell Compiler — a next-generation Haskell compiler focused on predictable performance and modern concurrency.