<div dir="ltr">No objection here. +1<div><br></div><div>-Edward</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 22, 2016 at 1:18 AM, David Feuer <span dir="ltr"><<a href="mailto:david.feuer@gmail.com" target="_blank">david.feuer@gmail.com</a>></span> wrote:<br><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>
<br>
castWith :: (a :~: b) -> a -> b<br>
<br>
and<br>
<br>
gcastWith :: (a :~: b) -> (a ~ b => r) -> r<br>
<br>
<br>
But in Data.Type.Coercion we only have<br>
<br>
<br>
coerceWith :: Coercion a b -> a -> b<br>
<br>
<br>
It seems to me that for the sake of consistency, we should add<br>
<br>
<br>
gcoerceWith :: Coercion a b -> (Coercible a b => r) -> r<br>
gcoerceWith Coercion a = a<br>
<span class="HOEnZb"><font color="#888888"><br>
David Feuer<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</font></span></blockquote></div><br></div>