{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreieschyi3nrxu4fr4lndknmjzf3fhhhhv3numdztwb3b7sfzgty36e",
    "uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3miycuemgcel2"
  },
  "path": "/t/ann-css-class-bindings-library-generates-haskell-bindings-for-css-classes/13857#post_12",
  "publishedAt": "2026-04-08T04:53:11.000Z",
  "site": "https://discourse.haskell.org",
  "tags": [
    "REPL-based live-reloading"
  ],
  "textContent": "george.fst:\n\n> Is this an upstream issue with `css-syntax` then?\n\nNo\n\ngeorge.fst:\n\n> _Compiled_ Wasm builds work fine, but are you using `-fghci-browser`, for REPL-based live-reloading?\n\nNo, I didn’t have to. Imho WASM backend is faster than native one. Rebuild takes about a second.\n\ngeorge.fst:\n\n> I tend to automatically use IDs instead of classes\n\nSo 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.\nThat’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.",
  "title": "[ANN] css-class-bindings library generates Haskell bindings for CSS classes"
}