{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidab66ivlhpcx4ftpz6cumxrnrldavccbsroujkbr7dd5jzfxbksu",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3miwn4uo35wb2"
},
"path": "/t/ann-css-class-bindings-library-generates-haskell-bindings-for-css-classes/13857#post_10",
"publishedAt": "2026-04-07T17:59:57.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"REPL-based live-reloading"
],
"textContent": "dyaitskov:\n\n> ids and classes exist in separate namespaces\n\nThat’s a fair point. I’m not sure what the best solution would be. I think I’d probably want to be able to generate two separate Haskell modules, so that I could qualify the names in the (relatively unlikely) event I’d need to disambiguate. But this isn’t great while GHC doesn’t allow defining multiple modules in one file. It would require two separate TH invocations. I’ve actually been having the same annoyance recently while using `hs-bindgen` and wanting separate modules for safe and unsafe bindings.\n\ndyaitskov:\n\n> It is folding a list of CSS tokens from css-syntax package with pattern matching\n\nIs this an upstream issue with `css-syntax` then?\n\ndyaitskov:\n\n> TH in 9.12.2 with WASM Backend **works fine**\n\n_Compiled_ Wasm builds work fine, but are you using `-fghci-browser`, for REPL-based live-reloading?",
"title": "[ANN] css-class-bindings library generates Haskell bindings for CSS classes"
}