You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ToWidget typeclass could be more helpful than it currently is. Notably, there are sensible instances for Text, lazy Text, and text Builder that are not provided. I think that one objection to introducing such classes is that there is a piece of syntax in the shakespeare quasiquoter ^{..} that calls ToWidget on its argument. Adding more instances would allow the end user to feed text into this construct, which might be undesirable.
I don't use the quasiquoter for templating, so the downside of it doesn't bother me. The reason I would like these instances is because there are a number of situations where I have to call toWidget . toHtml in my code that could be abbreviated to toWidget if these instances were provided. If this change is at odds with the goals of the TH templating, then I wouldn't want to mess that up for people, but if not, I would find these instances useful.
The text was updated successfully, but these errors were encountered:
The
ToWidget
typeclass could be more helpful than it currently is. Notably, there are sensible instances forText
, lazyText
, and textBuilder
that are not provided. I think that one objection to introducing such classes is that there is a piece of syntax in the shakespeare quasiquoter^{..}
that callsToWidget
on its argument. Adding more instances would allow the end user to feed text into this construct, which might be undesirable.I don't use the quasiquoter for templating, so the downside of it doesn't bother me. The reason I would like these instances is because there are a number of situations where I have to call
toWidget . toHtml
in my code that could be abbreviated totoWidget
if these instances were provided. If this change is at odds with the goals of the TH templating, then I wouldn't want to mess that up for people, but if not, I would find these instances useful.The text was updated successfully, but these errors were encountered: