HSRS
HSRS is a code-generation tool that produces type-safe Haskell bindings for Rust libraries via procedural macros. Annotate Rust types and functions with `#[hsrs::*]` attributes, run the codegen CLI, and receive idiomatic Haskell that handles memory management, serialization, and complex type conversions automatically.
Created by harmont-dev and published on GitHub on May 14, 2026, HSRS announced on the Haskell Community Discourse and reached Hacker News on May 19, 2026. Its key differentiator over the older hs-bindgen is support for rich Rust types — `Result<T,E>` maps to `Either E T`, `Option<T>` to `Maybe T`, `Vec<T>` to `[T]` — via Borsh serialization across the FFI boundary.
Think of it as PyO3 for Haskell: annotate Rust, generate idiomatic bindings, ship.
Search Interest
-
Nascent0–7 days
-
Emergent ← now8–30 days
-
Validating31–90 days
-
Rising91–180 days
-
Established180 days +
Why is it emerging now?
Rust is absorbing much of the systems-programming ecosystem — parsers, serializers, cryptography, ML runtimes — and Haskell projects increasingly need those libraries without rewriting them. HSRS launched May 14, 2026 to close that gap with PyO3-style ergonomics, and its HN debut on May 19 surfaced community appetite for a well-maintained solution after hs-bindgen stalled.
Outlook
6-month signal projection and commercial timeline.
Niche Haskell-Rust interop tool; growth bounded by the small overlap of both communities.
Risk · Haskell's declining popularity and hs-bindgen's head start could limit adoption.
Analogs · PyO3 · napi-rs · hs-bindgen
-
nowOSS, no paid tier
Early open-source adoption; no commercial product exists yet.
-
3-6moConsulting + integration
Haskell shops needing Rust library access are a paid consulting niche.
-
6-12moTooling or hosted codegen
Potential for paid IDE extensions or cloud codegen service if adoption grows.
Competition & Opportunity for term “HSRS”
Three heuristic signals derived from the tracked queries, the term's monetization cards, and its cluster neighbors. Directional, not audited.
Ideas for term “HSRS”
Buildable pitches — turn this term into an article, site, product, post, newsletter, video, or course. Steal any card and run with it.
Comparison article with concrete type-mapping examples; targets the small but search-active overlap of Haskell and Rust developers looking for interop guidance.
Step-by-step tutorial from annotating Rust to running `hsrs-codegen`; evergreen SEO target for the query 'call rust from haskell'.
Reduces friction in mixed Haskell+Rust projects; similar to how rust-analyzer watches files. Small addressable audience but highly engaged.
Broad landscape article covering the typed-language FFI space; captures cross-language developer curiosity and links to each project.
First-person migration story is a high-sharing format on r/haskell and LinkedIn; appeals to teams with existing hs-bindgen or manual FFI code.
Every new parser, serializer, and ML runtime ships in Rust first — and Haskell projects are left choosing between C wrappers and rewrites. HSRS is trying to close that gap with 37 stars in its first week.
PyO3 turned Python-Rust interop from a C-header nightmare into a two-line annotation — and now HSRS is trying to do the same for Haskell.
What used to take 200 lines of C headers now takes five Rust annotations and a code-generator command.
What People Search
Long-tail queries from Google Suggest + Trends. Volume and competition are heuristics — directional, not audited. Content Type comes from query shape.
SERP of term “HSRS”
What searchers see today — organic results on top, paid ads if anyone's bidding. Ad density is a real-time commercial signal.
FAQ
What is HSRS?
HSRS is a code-generation tool that produces type-safe Haskell bindings for Rust libraries via procedural macros.
Why is HSRS emerging now?
Rust is absorbing much of the systems-programming ecosystem — parsers, serializers, cryptography, ML runtimes — and Haskell projects increasingly need those libraries without rewriting them. HSRS launched May 14, 2026 to close that gap with PyO3-style ergonomics, and its HN debut on May 19 surfaced community appetite for a well-maintained solution after hs-bindgen stalled.
When did HSRS emerge?
Publicly emerged around 2026-05-14 (about 20 days ago as of 2026-06-03). EarlyTerms first recorded a pipeline signal on 2026-05-19.
Related Terms
Other terms in the same space — aliases, subtypes, competitors, and neighbors to explore next.
- Part of ·
- Competitor
- Related ····
Sources
Primary URLs this report cites — open any to verify the claim yourself.
- 01 harmont-dev/hsrs — Official GitHub repository (37 stars, MIT/Apache-2.0) github.com ↗
- 02 Haskell Discourse: ANN hsrs — Ergonomic Haskell Bindings for Rust (May 19, 2026) discourse.haskell.org ↗
- 03 Hacker News: Show HN — Hsrs Type-Safe Haskell Bindings Generator for Rust (May 19, 2026, 49 pts) news.ycombinator.com ↗
- 04 yvan-sraka/hs-bindgen — predecessor C-FFI binding tool (72 stars) github.com ↗
- 05 IOG Engineering: One step forward — easier interoperability between Rust and Haskell (hs-bindgen background) engineering.iog.io ↗