<div dir="ltr">As a user who frequently uses ~, but doesn't need the rest of GADTs or TypeFamilies, I'd really like to see a TypeEqualities extension!<div><br></div><div>Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 5, 2016 at 3:27 PM, Adam Gundry <span dir="ltr"><<a href="mailto:adam@well-typed.com" target="_blank">adam@well-typed.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 05/08/16 19:08, David Feuer wrote:<br>
> It seems to me that equality constraints could potentially be supported<br>
> by an implementation with neither GADTs nor type families. Type families<br>
> don't really seem to have much to do with it, and GADTs are strictly<br>
> heavier (GADTs ~= ExistentialQuantification + TypeEquality).<br>
><br>
> Could we get a separate LANGUAGE pragma just for equality constraints?<br>
<br>
</div></div>I suggested this in #10431 [1], where there is some discussion of the<br>
implications. I still think it is a good idea, and I don't think the<br>
implementation would be very difficult.<br>
<br>
All the best,<br>
<br>
Adam<br>
<br>
[1] <a href="https://ghc.haskell.org/trac/ghc/ticket/10431" rel="noreferrer" target="_blank">https://ghc.haskell.org/trac/<wbr>ghc/ticket/10431</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Adam Gundry, Haskell Consultant<br>
Well-Typed LLP, <a href="http://www.well-typed.com/" rel="noreferrer" target="_blank">http://www.well-typed.com/</a><br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div>