r/haskell • u/adamgundry • 18h ago
blog [Well-Typed] Not Slop: Haskell in the Age of AI
well-typed.comr/haskell • u/arjunswaj • 7h ago
announcement [Visual Studio Code Extension] Haskell Test Runner
Visual Studio Code has been my IDE for quite some time. While the official Haskell plugin is great, it always kinda irked me that full test runner support isn't there like other languages have. So I spent some tokens and created a plugin myself. It works with both Cabal and Stack projects (Hspec, Tasty, and custom suites) with Testing sidebar integration, gutter play buttons, and watch mode. I thought I should share it here in case someone wants to run tests through VSCode.
- Plugin: haskell-test-runner
- Source: GitHub
r/haskell • u/sperbsen • 1d ago
BOB Conference 2027 (Berlin, Feb 26) - Call for Participation
"What happens when we use what's best for a change?"
bobkonf.de/2027/- Berlin, Feb 26
BOB conference is a place for developers, architects, and decision-makers to explore technologies beyond the mainstream in software development and to find the best tools available to software developers today. Our goal is for all participants of BOB to return home with new insights that enable them to improve their own software development experience.
Program
The program features 16 talks and 8 tutorials on current topics.
Talk subjects includes formal methods, functional programming, software architecture, event-driven systems, programming languages, and the culture and organization of software development.
BOB tutorial include sessions on functional programming, Idris, accessibility, configuration, unikernels, formal methods, and ethics.
Xavier Leroy of OCaml and CompCert fame will give the keynote.
Registration
Registration is open - many discount options - including limited early-bird discounts - are available, as are grants for members of groups underrepresented in tech.
r/haskell • u/aaron-allen • 1d ago
[GSoC 2027] Call for Ideas
On the heels of a successful Google Summer of Code 2026 ( Google Summer of Code 2026 Wrap-up | The Haskell Programming Language's blog ), we’re hoping to see Haskell take part in the upcoming 2027 edition! To make a strong application, we need a good list of project ideas, and that’s where you come in.
In the past, GSoC has led to many improvements to GHC, Cabal, HLS, Liquid Haskell… and it can include your project as well! It’s a great way to find contributors for your project, even after the summer ends: many past participants have stayed involved long-term.
If you maintain or use a Haskell project and have an improvement in mind that a contributor could take on over the summer (and you’d be willing to mentor it), please submit an idea. You can find more info and instructions on how to participate here: Summer of Haskell - ideas .
r/haskell • u/mitchellvitez • 1d ago
video Type-level Haskell from Zero to Advent
youtube.comr/haskell • u/AutoModerator • 1d ago
Monthly Hask Anything (December 2026)
This is your opportunity to ask any questions you feel don't deserve their own threads, no matter how small or simple they might be!
r/haskell • u/_jackdk_ • 2d ago
announcement Amazonka 2.1 RC 1 is ready for testing
github.comr/haskell • u/sperbsen • 2d ago
announcement Haskell Interlude #90: David Luposchainsky
haskell.foundationIn this Interlude, we sat down with David Luposchainsky. David is senior consultant at TNG and one of the founders of MuniHac, and has a long history with Haskell. We had a far-ranging conversation from compiler construction to shaping the evolution of the language to generative art: David built his own CNC machine and programmed it with Haskell. We also talked about the arc from a Physics degree to programming, and reflected on the perils of language evolution and language popularity. Enjoy!
r/haskell • u/csabahruska • 3d ago
GRIN Compiler status update: memory layout control, two level type theory based staging, dependent types, Idris2, MicroHs
Read my blog post: https://www.patreon.com/csaba_hruska/posts/new-compiler-176648791
- 2ltt staging for MicroHs and Idris2
- Serialized in-memory data representation
- External STG Interpreter in Idris2 running Haskell programs
- New compiler and RTS design
r/haskell • u/Lalelul • 3d ago
Agdalicious - A new LSP and neovim extension for Agda
github.comHi everyone!
I wanted to share this Neovim plugin / LSP for Agda which also has Haskell-Language-Server interoperability. Maybe some of you would like to dip your feet into dependently typed programming languages or proof assistence and you already have experience in Haskell? Then I hope this is of help to you!
announcement Experimental Dependent Types in Haskell Fork
Hey all!
Today I’m releasing my fork of GHC with -XDependentTypes. You can try it in the browser or walk through the examples.
I figured that if the slop cannon could help with the Riemann hypothesis, it could handle Dependent Haskell. And it did!
To see what the fork could do, I had Gemini 4 Neon port Programming Language Foundations in Agda to Dependent Haskell. Thanks to the GHC Wasm backend, you can work through the 25-chapter book directly in your browser. It even has an Agda mode built on my work on valid hole fits. Leave a hole in a proof and a hole-fit plugin can suggest what goes there.
There are examples of type-directed JSON encoding without type families, typed SQL schemas and joins, and Servant-style routing. You can select your monad transformer stack at runtime! The walkthrough also covers type-level case and lambdas, and linear protocols.
My goal is to build hype around dependent types in Haskell and show how much of the design is already there in the proposals. I’m releasing this as an experimental fork. I don’t plan to upstream it myself, though the GHC team is welcome to use it.
If you want to try it in your own project, there’s a dependent-base library. You can get it through dependent-hackage, an overlay along the lines of head.hackage. It also carries patches for tools like Fourmolu that need to understand the new syntax.
There’s even an observational equivalence plugin. Say you have a dependently typed implementation and a fast path written in ordinary Haskell. You can ask QuickCheck to look for inputs where the two disagree. If it finds one, you get a counterexample. If the tests pass, the result is only as strong as the generators and tests you chose.
Validation
The two main users so far have been the PLFH book and my PiTA library. The book turned up compiler bugs and showed where writing proofs was awkward. PiTA extends equality-constrained tree automata with dependent types and uses them to search for valid hole fits. Two plugins also exercise GHC’s internals: the observational equivalence plugin and a typed-hole proof helper.
I assume the implementation is full of holes (typed holes even) and bugs, but those can be fixed. I've run a sweep of Stackage and most packages compile, barring some minor shims for GHC 10.1 compatibility. Some minor compiler issues are being fixed as well.
Development notes
The initial work was done mostly by GPT-6.2 Astra managing a team of GPT-6.2 Sol agents. After I ran out of usage and resets, Gemini took over the compiler work with a team of Gemini 4 Carbon models. Both teams used their native harnesses, with some additional skills based on Well-Typed blog posts, anti-slop and humanizer skills for writing, and an internal agentic engineering plugin at DPella AB. Claude worked on PiTA and turned up several compiler issues.
I based the prompts on GHC proposal #378, the Serokell roadmap, and Richard Eisenberg’s thesis, papers, and old GHC branch.
The compiler, book, and PiTA work came to about 37.1 billion tokens in total, roughly 98% of them cache reads. At public API rates, the estimate came to around $16k. I ran it all on subscriptions, with some help from three banked resets, OpenAI’s generously timed billing bug, and Gemini’s Thanksgiving reset. So no need for a GoFundMe!
Acknowledgements
Thanks to Richard Eisenberg for proposal #378, his thesis, and the old GHC branch that gave us a place to start. Thanks to Vladislav Zavialov, Andrei Borzenkov, and the rest of the Serokell team for the roadmap and years of work on GHC, and to everyone who wrote and reviewed the other proposals we drew on.
Thanks to Philip Wadler, Wen Kokke, and Jeremy G. Siek for PLFA. Having a book full of proofs written for another language was a great way to find out where our compiler fell short.
Thanks to Cheng Shao, Norman Ramsey, and the other GHC Wasm contributors for making it possible to try this in a browser. Thanks to Jules (@analytichegel on Twitter) for the observational equivalence idea behind the QuickCheck plugin.
Thanks to Mercury for ghc-persistent-worker. With a few tweaks, it made those repeated incremental GHC builds a lot faster! And thanks to Andrea Bedini and IOG for Foliage, whose package metadata format we use in dependent-hackage.
Thanks for reading! I hope you get a chance to play around with it. If you find a bug, please file an issue on the fork. I’d love to see what people try with it, and I hope this builds some excitement for getting dependent types into GHC itself.
r/haskell • u/LaurentRDC • 4d ago
[ANN] Distributed consensus library and ecosystem with built-in DST
Hey all,
Over the past year, I have been working on an implementation of the Raft consensus algorithm in Haskell, which allows for distributed consensus. In particular, using Raft, one can create a distributed, fault-tolerant state machine. The library has been released on Hackage under the name raft-consensus. Bring your own networking and persistence layer!
Raft is tricky to get right. To ensure that the library works correctly, and respects the properties of the algorithm in practice, even under faults such as crashes and network partitions, I leveraged a technique called deterministic simulation testing (DST), using io-sim as the foundation. io-sim is pure awesomeness that should be used more.
While building out examples, I noticed other ecosystem holes that resulted in more packages. Testing the linearizability of client requests required building a simple linearizability checker: linearizable. Another piece of technology that came from this project is a generic and performant implementation of write-ahead logs via a new wal package.
Finally, in order to make it as easy as possible to build a replicated state machine in practice, I built two adapter packages:
- Networking of Raft clusters via Cloud Haskell:
raft-consensus-distributed-process - Persistence of Raft state via write-ahead logs:
raft-consensus-wal
I feel relatively confident in releasing this stuff now because, over the past week, I’ve been working on a demo: distributed software transactional memory. This program looks just like stm, but running over multiple computers.
Right now it’s just a demo, but it shows how freaking cool distributed state machines can be.
My goal, since I started helping with maintenance of Cloud Haskell, has been for Haskell to become a solid choice for distributed systems. We’re now one step closer to that reality.
If you’re interested in this stuff, I would love to get your input on this and collaborate. Development for all of this is happening here: GitHub - LaurentRDC/distributed-consensus: Haskell implementation of distributed consensus protocols with built-in support for deterministic simulation testing · GitHub
r/haskell • u/philip_schwarz • 4d ago
The Bowling Game - From Imperative to Functional Programming - Part 4
fpilluminated.orgr/haskell • u/adamgundry • 5d ago
blog [Well-Typed] Exception Best Practices
well-typed.comHaskell Dataframe is now in DuckDB’s `Database-like ops benchmark
https://duckdblabs.github.io/db-benchmark
Often get questions about performance. This benchmark seemed like a great place to start since other language's DataFrame implementations are well represented there. Working a follow up blog post/experience report about optimizing Haskell for data engineering in general: the architecture of the implementation, learnings from other ecosystems, and the usual gotchas of writing performant Haskell (mostly the safety/performance tradeoff).
r/haskell • u/jose_zap • 5d ago
[ANN] pgfmt Format your hasql-th blocks (or any other SQL file)
We have been using this SQL formatter at work that we built in house. With the help of an LLM we managed to extract it from our code base and make it a proper tool for general use
pgfmt, a formatter for PostgreSQL SQL files and for the SQL inside Haskell hasql-th quasiquotes.
We've taken lots of care in making sure the formatter does not alter the meaning of the SQL it outputs. Before rewriting a statement, pgfmt parses the result with libpg_query (PostgreSQL's own parser) and compares parse trees. If they differ, the statement is left exactly as it was and pgfmt exits non-zero. We've run it over thousands of production migrations and hasql-th blocks.
The style it follows is quite arbitrarily our own preference. We never did agree in the end on what we liked, but after a while we just accepted the benefit of having a single style and the arguments were over.
For .hs files it formats the SQL inside singletonStatement, vectorStatement and the other hasql-th quoters, and leaves the Haskell alone, so it works alongside fourmolu or ormolu:
becomes
It skips comments and string literals the way GHC's lexer does, so a quasiquote inside a string or a comment is never touched. Each quasiquote is only rewritten if it parses back to the same AST.
Other features:
- SQL files: DDL, DML, and the SQL statements inside PL/pgSQL function bodies
--checkfor CI and pre-commit--keyword-case lower|upper--quoter NAMEfor your own quoter aliases
Try it:
Feedback and issues are welcome: https://github.com/kronor-io/pgfmt
r/haskell • u/TheOneExpert • 8d ago
announcement I added Live Coding to my Haskell Game Engine!
As the title says, I've just released a new version of Mischief (my free, open source, ECS-based game engine written in Haskell). It features a new library, mischief-live, which lets you hot-reload code from a targeted library. Internally, it does some hint magic to run an interpreter in the background and cache its results.
You can find two full videos in which I play around with this here and here.
Feel free to join the official discord server to be kept up to date with updates, chat with others, and support Mischief.
Check the official documentation for more information on what Mischief is and how to use it.
Also, reminder that absolutely no LLMs or other generative AI was used when making Mischief and the community and project have a strict no-AI policy :)
r/haskell • u/IamZelenya • 8d ago
A higher-level abstraction for music, with Haskell (w/ Sandy Maguire)
youtu.beMusic, Haskell, FRP, abstractions, functors, Yoneda, continuation monad, Sandy Maguire. Enjoy.