[ANN] css-class-bindings library generates Haskell bindings for CSS classes
dyaitskov:
ids and classes exist in separate namespaces
That’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.
dyaitskov:
It is folding a list of CSS tokens from css-syntax package with pattern matching
Is this an upstream issue with css-syntax then?
dyaitskov:
TH in 9.12.2 with WASM Backend works fine
Compiled Wasm builds work fine, but are you using -fghci-browser, for REPL-based live-reloading?
Discussion in the ATmosphere