External Publication
Visit Post

[ANN] css-class-bindings library generates Haskell bindings for CSS classes

Haskell Community [Unofficial] April 8, 2026
Source

george.fst:

Is this an upstream issue with css-syntax then?

No

george.fst:

Compiled Wasm builds work fine, but are you using -fghci-browser, for REPL-based live-reloading?

No, I didn’t have to. Imho WASM backend is faster than native one. Rebuild takes about a second.

george.fst:

I tend to automatically use IDs instead of classes

So I imagine a TH function generating UUID id for an HTML component, extracting CSS classes from the component, discovering CSS selectors mentioning these classes and rewriting them with the UUID prefix, stripping a bigger chunk of unrelated CSS. That’s very cool, but there is no need for type enforcement, because it’s automatic algorithm. The algorithm would work fine with plain strings for ids and classes. The algorithm requires testing and ideally verification.

Discussion in the ATmosphere

Loading comments...