v0.3.6

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 | sh

Or 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

Cold build
hx native0.48s
cabal2.68s
5.6xfaster
Incremental
hx native0.05s
cabal0.39s
7.8xfaster

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 .cabal files
  • 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 run

Comparison

Featurehxcabalstack
Written inRustHaskellHaskell
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.