<div dir="ltr">CCing the Yesod mailing list, which may have more opinions.<div><br></div><div>I'm fine with the change if there are no objections. Want to send a PR?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 23, 2016 at 5:28 PM, Andrew Martin <span dir="ltr"><<a href="mailto:andrew.thaddeus@gmail.com" target="_blank">andrew.thaddeus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have copied the body of this github issue get feedback on this<br>
suggestion:<br>
<br>
<a href="https://github.com/yesodweb/yesod/issues/1298" rel="noreferrer" target="_blank">https://github.com/yesodweb/<wbr>yesod/issues/1298</a><br>
<br>
The ToWidget typeclass could be more helpful than it currently<br>
is. Notably, there are sensible instances for Text, lazy Text, and text<br>
Builder that are not provided. I think that one objection to introducing<br>
such classes is that there is a piece of syntax in the shakespeare<br>
quasiquoter ^{..} that calls ToWidget on its argument. Adding more<br>
instances would allow the end user to feed text into this construct,<br>
which might be undesirable.<br>
<br>
I don't use the quasiquoter for templating, so the downside of it<br>
doesn't bother me. The reason I would like these instances is because<br>
there are a number of situations where I have to call `toWidget . toHtml`<br>
in my code that could be abbreviated to toWidget if these instances were<br>
provided. If this change is at odds with the goals of the TH templating,<br>
then I wouldn't want to mess that up for people, but if not, I would<br>
find these instances useful.<br>
<br>
I would appreciate any feedback, even if it's just in the form of a +1<br>
or -1 response without any further explanation.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Andrew Martin<br>
______________________________<wbr>_________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/web-devel" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/web-devel</a><br>
</font></span></blockquote></div><br></div>