<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">+1</div><div class=""><br class=""></div><div class="">I'm not sure why that was left out.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 22, 2016, at 4:58 AM, Oliver Charles <<a href="mailto:ollie@ocharles.org.uk" class="">ollie@ocharles.org.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">I have wanted this exact function before. +1</p>
<br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, 22 Jul 2016, 12:27 a.m. Edward Kmett, <<a href="mailto:ekmett@gmail.com" class="">ekmett@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">No objection here. +1</div><div dir="ltr" class=""><div class=""><br class=""></div><div class="">-Edward</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Jul 22, 2016 at 1:18 AM, David Feuer <span dir="ltr" class=""><<a href="mailto:david.feuer@gmail.com" target="_blank" class="">david.feuer@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In Data.Type.Equality, we have both<br class="">
<br class="">
castWith :: (a :~: b) -> a -> b<br class="">
<br class="">
and<br class="">
<br class="">
gcastWith :: (a :~: b) -> (a ~ b => r) -> r<br class="">
<br class="">
<br class="">
But in Data.Type.Coercion we only have<br class="">
<br class="">
<br class="">
coerceWith :: Coercion a b -> a -> b<br class="">
<br class="">
<br class="">
It seems to me that for the sake of consistency, we should add<br class="">
<br class="">
<br class="">
gcoerceWith :: Coercion a b -> (Coercible a b => r) -> r<br class="">
gcoerceWith Coercion a = a<br class="">
<span class=""><font color="#888888" class=""><br class="">
David Feuer<br class="">
_______________________________________________<br class="">
Libraries mailing list<br class="">
<a href="mailto:Libraries@haskell.org" target="_blank" class="">Libraries@haskell.org</a><br class="">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br class="">
</font></span></blockquote></div><br class=""></div>
_______________________________________________<br class="">
Libraries mailing list<br class="">
<a href="mailto:Libraries@haskell.org" target="_blank" class="">Libraries@haskell.org</a><br class="">
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br class="">
</blockquote></div>
_______________________________________________<br class="">Libraries mailing list<br class=""><a href="mailto:Libraries@haskell.org" class="">Libraries@haskell.org</a><br class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries<br class=""></div></blockquote></div><br class=""></body></html>