The Haskell framework for agentic engineering
open coreMITself-hostablefree
IHP (Integrated Haskell Platform) is a batteries-included web framework for Haskell that leans on the compiler to catch mistakes, which it pitches at code written by AI agents. Typed SQL checks every query against your real Postgres schema at compile time, records, ids and enums are generated from the schema file, HSX parses HTML views at compile time, and the routes DSL validates every path and query parameter. Projects run on Nix flakes and come with a Hoogle server, an AGENTS.md of conventions, a browser-based IDE with a schema editor and code generators, and one command (nix flake check) that builds, typechecks and tests. The open source Basic edition is free; IHP Pro ($25 a month, commercial use up to $20k revenue a year) and Business ($125 per developer a month) add password reset, Google and GitHub sign-in, Stripe, Docker and Sentry integration.
Problems it solves
- a type-safe web framework where SQL mistakes fail at compile time
- build a web app in Haskell with a Rails-like workflow
- catch bugs in AI-written web code before it runs
- a full-stack framework with typed database queries against Postgres
Features
- typed SQL checked against Postgres at compile time
- records generated from the schema
- compile-checked HSX views and routes
- Nix flake projects
- Hoogle server per project
- browser-based IDE with schema editor and code generators
- AGENTS.md conventions
Alternatives
The same job
These do what IHP does.
- Ruby on Rails Accelerate your agents with convention over configuration.