[ANN] css-class-bindings library generates Haskell bindings for CSS classes
george.fst:
Is this an upstream issue with
css-syntaxthen?
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