cd /news/developer-tools/hasql-v2-the-native-era · home topics developer-tools article
[ARTICLE · art-98755] src=discourse.haskell.org ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Hasql v2: the Native Era

Hasql v2, a Haskell database library, is now available and can run natively in Haskell with no external dependencies, or continue using libpq, with no performance degradation and minimal API changes. The release gives users the choice between the two modes, as detailed in a post by the developer explaining the reasoning and implementation.

read1 min views3 publishedAug 16, 2026
Hasql v2: the Native Era
Image: Discourse (auto-discovered)

Hasql v2 is out. It can now run natively in Haskell with no external dependencies, or the same way it always has, using “libpq”. It’s the user’s choice now. No performance degradation and minimal changes to the API.

I’ve written up the post explaining the reasoning and how it was achieved:

23 Likes

What’s the difference between pqi and hpgsql? cc @mzabani

── more in #developer-tools 4 stories · sorted by recency
── more on @hasql 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/hasql-v2-the-native-…] indexed:0 read:1min 2026-08-16 ·