<p dir="ltr">(:~:) is from Data.Type.Equality.</p>
<p dir="ltr">data a :~: b where<br>
Refl :: a :~: a</p>
<div class="gmail_quote">On Jan 14, 2016 8:56 AM, "Andreas Abel" <<a href="mailto:andreas.abel@ifi.lmu.de">andreas.abel@ifi.lmu.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What does this smiley :~: stand for?<br>
<br>
On 13.01.2016 06:58, David Feuer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
These are not likely to be *useful*, but they fall easily into the<br>
general bucket of "exactly one sensible instance exists".<br>
<br>
instance Semigroup (a :~: b) where<br>
r <> _ = r<br>
<br>
instance a ~ b => Monoid (a :~: b) where<br>
mempty = Refl<br>
mappend r _ = r<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">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>
<br>
</blockquote>
<br>
<br>
-- <br>
Andreas Abel <>< Du bist der geliebte Mensch.<br>
<br>
Department of Computer Science and Engineering<br>
Chalmers and Gothenburg University, Sweden<br>
<br>
<a href="mailto:andreas.abel@gu.se" target="_blank">andreas.abel@gu.se</a><br>
<a href="http://www2.tcs.ifi.lmu.de/~abel/" rel="noreferrer" target="_blank">http://www2.tcs.ifi.lmu.de/~abel/</a><br>
</blockquote></div>