r/haskell • u/adamgundry • 1d ago
r/haskell • u/AutoModerator • 4d 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/NorfairKing2 • 1d ago
Tristan Mc Leay - Mutation Testing With Sydtest
youtube.comr/haskell • u/Sad-Grocery-1570 • 2d ago
Recursive Algebraic Data Types are Interesting
blog.wybxc.ccThis post is about some interesting things about recursive algebraic data types I found when working as a TA for a Haskell course.
The second half of the article requires some knowledge of category theory to understand.
r/haskell • u/Embarrassed-Ride-519 • 2d ago
GitHub - poise52/USBview-HS: Native USB inspector for macOS(Swift, haskell). Explore the USB device tree, inspect descriptors, and reconnect devices or hubs from the menu bar.
github.comHey everyone,
I’ve been working on USBview HS, an open-source (MIT) native USB inspector for macOS (15+, Apple Silicon).
If you've ever needed to see what’s actually going on behind a tangle of USB-C docks and nested hubs—or wanted to software-reset a misbehaving USB device without crawling under your desk to unplug it—that’s what this tool is built for.
What it does
- Full USB Topology Tree: Inspect controllers, nested hubs, and even empty ports. It automatically groups the USB 2 and USB 3 sides of the same physical connector when the macOS I/O Registry links them.
- Software Reconnect (Reset): Reset a USB device or hub directly from the app or the menu bar via IOUSBHostDevice.reset(), and verify whether it reappears on the same port.
Deep Inspection:
- Ports: Awake/sleep current limits, per-link error counters, and USB-C transport info.
- Devices: VID:PID, serial numbers, negotiated speeds, drivers, interfaces, and on-demand Configuration Descriptors (alternate settings & endpoints).
- Adapters & Drives: BSD interface names, MAC, MTU, and link state for USB Ethernet adapters; media/partition info and write capability for drives.
- Menu Bar & Mini Window: Quick access to connected devices right from the menu bar, plus an optional always-on-top floating mini window.
- Search & Event Log: Filter by name, manufacturer, or VID:PID, with configurable auto-refresh and a log tracking the last 200 attach/detach events.
- Headless CLI Mode: Query the exact same USB topology from the terminal—dump the tree, export to JSON, watch live attach/detach events, or filter by --network, --storage, and --details.
Under the hood
Architecturally, it’s a bit of an unusual mix: a Haskell backend engine (engine/) reads directly from the macOS I/O Registry via IOKit and constructs the USB topology, while a Swift 6 / SwiftUI frontend (app/) handles the native UI, reads configuration descriptors through IOUSBLib, and triggers device resets.
Installation & Quick Notes
- Pre-built Apple Silicon .zip binaries are available on GitHub Releases (built via GitHub Actions), or you can build from source with make run.
- Gatekeeper note: Releases are ad-hoc signed and not notarized by Apple, so if macOS blocks the first launch, you can clear the quarantine flag with xattr -dr com.apple.quarantine "/Applications/USBviewHS.app".
- Language note: The UI currently defaults to Russian on first launch—you can switch to English right away via Настройки (Settings) → Язык интерфейса (the choice persists across launches)
r/haskell • u/mattlianje • 3d ago
layoutz 1.0: Simple, zero-dep Haskell TUIs ✨🪶 (5x faster than Go's BubbleTea w/ a smaller mem-footprint) now w/ Adaptive Components & Mouse Handling
Hello! Released 1.0 of layoutz. It adds mouse handling, layouts that adapt to the terminal size, and widgets (text inputs, select lists, overlays, scrollable viewports). Let me know how the API feels for those. Benchmarks here
Essentially all the breaking API changes are due to the fact the core building block is now `View msg` not `L` so your compositional elements can respond to clicks ...
but the API should feel largely the same, if not more succinct.

r/haskell • u/adamgundry • 3d ago
blog [Well-Typed] Not Slop: Haskell in the Age of AI
well-typed.comr/haskell • u/arjunswaj • 3d 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 • 4d 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 • 4d 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 • 5d ago
video Type-level Haskell from Zero to Advent
youtube.comr/haskell • u/_jackdk_ • 5d ago
announcement Amazonka 2.1 RC 1 is ready for testing
github.comr/haskell • u/sperbsen • 5d 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 • 6d 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 • 6d 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 • 8d 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