XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Haskell Community - Latest posts

Latest posts

Micro Haskell AI policy

Since it is popular to have an AI policy these days, here is the one for the MicroHs project: There is no special AI policy for the Micro Haskell project. Every PR will be accepted or rejected on the usual grounds. I don’t care if it was you, Claude, or your cat who wrote it.

LLMLL: a language for agent-written code, with a Haskell compiler that emits liquid-fixpoint constraints directly

LLMLL is a language I’ve been building to experiment with AI (LLMs) writing code. A function starts as a contract with a typed hole for the body. The contract is a typed signature, optionally refined with predicates (`(where [x: int] (> x 0))`), plus a precondition and a postcondition. When an agent attempts to fill the hole, the fill must type-check, and then the compiler checks it against the predicates and conditions with Z3 before the patch is integrated into the AST. A body the solver…

How to refactor this code combining IO and Either?

The topic of effect systems is a very big one! You might like my talk: A History of Effect Systems. “Analytic” and “synthetic” are terms I introduced to distinguish two different ways of implementing effects: Synthetic: build data structures that represent computations and then interpret them. This is what transformers are, so for example exceptions are modelled by ExceptT e m r = m (Either e r), state is modelled by StateT s m r = s -> m (s, r) etc.. One problem with this approach is that it…

How to refactor this code combining IO and Either?

Thanks for sharing this follow-up thoughts - much appreciated although to be honest I’ve never used effect systems or any of the mentioned alternatives so I’m feeling a bit lost here By the way, “analytic effect system” has been mentioned a couple of times… what does it mean (and what is an effect system for that matter)? Is there some place where I can look this stuff up?(I’m currently revisiting G. Hutton’s “Programming in Haskell 2nd edition” after a few years’ break but this topics are…

Does writing in a "beautiful" programming language still matter in the age of AI?

I guess that’s more of an anciliary point intended to ad absurdum the all-AI pipeline, and yes, AI may prefer a custom IR designed to find a balance between performance, development efficiency, and maintainability. The core point, however, is that as long as you have humans in the loop, you need artifacts that humans can inspect, read, and understand, and Haskell is reasonably good for this niche.

Does writing in a "beautiful" programming language still matter in the age of AI?

Liamzy: The winner for an all-AI pipeline isn’t Python or Javascript, it’s assembly, LLVM, or straight machine code. Of course not, for the same reason it isn’t the “winner” for human toolchains. System’s capabilities abstraction and composition will set the ceiling and the budget for project complexity. Low-level stuff expends the budget like there’s no tomorrow on the minutiae that aren’t even concern for the end users. I’m with @dmjio on this. Pervasive eDSL-fication of your domain enables…

Does writing in a "beautiful" programming language still matter in the age of AI?

The winner for an all-AI pipeline isn’t Python or Javascript, it’s assembly, LLVM, or straight machine code. If you’re not going to be utterly nuts and replace everything with AI, and leave humans in the loop, at least partially, would you rather look at a “beautiful” programming language or spaghetti in a high-boilerplate language? The most likely intermediate pipeline until the profession or hobby completely dies is with human validation and verification, and you’d rather look at an LLM…

Cabal progress bar for building packages, libraries

Here’s the implementation: Codeberg.org cabal-progress-bar cabal-progress-bar What now needs to be done is connecting it to cabal and let cabal get the events (first/next module compilation started, component completely compiled). REQUEST FOR CONTRIBUTIONS! => Adding loading indicators to the build command · Issue #8943 · haskell/cabal · GitHub

How to refactor this code combining IO and Either?

dfilaretti: Yep, interesting… so according to the author what has been suggested before (and I ended up implementing) is an anti pattern. I don’t agree with Snoyman’s article. Some parts of it I agree with, but over all I don’t think it does a good job of charting a way forward. Let’s have a look through it. A common (bad) design pattern I see is something like the following: myFunction :: String -> ExceptT MyException IO Int There are (at least) three problems with this: It’s non-composable .…

Haskell app for building DJ sets/playlists and providing "next track" recommendation

Hi all, during the last couple of months I’ve been working on a little music-related Haskell program. I thought I’d share it here in case anybody else finds it interesting or want to provide feedback. This blog post explains the underlying ideas and motivations in detail, and the code is available here.

State of Haskell 2026 Survey

Dear community, the Haskell Foundation is continuing the tradition of a yearly State of Haskell survey, with the 2026 edition. We hope you’ll take some time (~10 minutes) to tell us about how you use Haskell, so we can better understand and serve the community surveymonkey.com State of Haskell 2026 Take this survey powered by surveymonkey.com. Create your own surveys for free. Please share with people you know! The more responses we get, the better we can plan. The survey will close on November…

`hs-bindgen` playground

Sorry about that, and thanks a lot for reporting. It should work now, I managed to create bindings for your header just now! Details about the bug: The `hs-bindgen` playground had `LANG` unset. hs-bindgen uses libclang to process the header, which uses UTF-8 by default. However, it also runs clang -E when reparsing some declarations to interpret macro invocations. This invocation of clang -E failed when the header contained non-ascii letters, and no LANG was set. In addition, the failure was…

Output Existentials

Wow! So many good questions! Furthermore, maximum needs Ord. How to push that inside MkE? Or might maximumE just fail at runtime? You are right - we cannot guarantee, that MkE has a type which is bounded by Ord! That’s why such code maximum . unE fails during a compile time! Yes, we need to push boundaries inside the data first and transitively preserve them: data E' = forall a. Ord a => MkE' [a] unE' :: E' -> exists a. Ord a => [a] unE' (MkE' @e xs) = therefore @e in xs Or must I create a…

Output Existentials

VitWW: lengthE (MkE @e xs) = L.length @e xs length nowadays has two type params, so that code is wrong. How are you going to express the needed typing for therefore? In any case, length is a poor example because it doesn’t care about the element type. Instead, consider: maximum :: (Foldable t, Ord e) => t e -> e So with maximum . unE, unE’s output existential is to be maximum’s input and its output. Does this mean maximum must output an existential? How does that work? Or must I create a…

Call for applications to the haskell.org working group

The Haskell.Org Committee has agreed to transfer the authority over www.haskell.org over to the Haskell Foundation The Haskell Foundation is therefore putting a new working group in place to manage www.haskell.org, both in terms of content but also all the machinery that builds and serves it. If you have opinions about what the Haskell community’s front page should look like, you’re in luck! We are currently looking for volunteers. Interested parties are invited to send me an e-mail explaining…