IHP is a Haskell and Nix web framework with type-safe routing, SQL, and HSX views, plus schema design tools, code generators, auth, and auto-refresh realtime pages.
Overview
IHP packages routing, controllers, views, models, and validation for data-driven web apps. HSX provides JSX-like HTML templates, and the type system is emphasized for catching mistakes at compile time.
Developer tooling includes a visual schema designer, migrations, live reload, and IDE features such as generators for controllers and views. Managed environments use Nix so devenv up can provision PostgreSQL and GHC consistently across teammates.
Realtime features include Auto Refresh, which diffs server-rendered pages over WebSockets, and optional packages for GraphQL, background jobs, email, and OpenAI streaming integrations documented on the site.
Deployment targets NixOS with the built-in deploy-to-nixos workflow, covering nginx, TLS, PostgreSQL, and systemd services from declarative configuration. Docker and bare-metal paths are also documented in the deployment guide.
Key features
- Type-safe routing queries HSX
- Visual schema designer
- Code generators and IDE
- Built-in authentication
- Auto Refresh over WebSockets
- Nix-managed dev environment
Use cases
- Build admin dashboards in Haskell
- Ship CRUD apps with SQL types
- Prototype AI-assisted features
- Deploy on NixOS servers