purescript-flame
purescript-flame copied to clipboard
Trivial ToClassList instance
We already have ToClassList instances for string and record, both of which are implemented by transforming them into Array String
. Meanwhile, it seems that it could be good idea to add a trivial instance ToClassList (Array String)
so that we can save time while avoid long lines when handling with libraries like TailwindCSS. Alternatively, we can add a classList
attribute to handle things.
To be exact, we could add
instance ToClassList (Array String) where
to = identity
here for the former idea.
What would you think?
Hi @KanbeKotoriDaisuki this sounds like a good idea. I will get to it, thanks!