<div dir="ltr">I expect this is a result of <a href="https://ghc.haskell.org/trac/ghc/ticket/8883" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/8883</a>, but even so it's not clear to me whether the error is correct. It would be nice if GHC printed the type it inferred for succ' in this kind of situation.<br>
<br>Regards,<br>Reid Barton<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 7:55 AM, Gabor Greif <span dir="ltr"><<a href="mailto:ggreif@gmail.com" target="_blank">ggreif@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Devs,<br>
<br>
as of recently GHC HEAD stopped building the diagrams library. Several<br>
prerequisite libs also fail to compile. A specific error message<br>
appears in an attoparsec issue<br>
<<a href="https://github.com/bos/attoparsec/issues/67" target="_blank">https://github.com/bos/attoparsec/issues/67</a>>, for which I have<br>
submitted a workaround. But as Herbert cautiously points out, this<br>
could be a recent GHC bug surfacing.<br>
<br>
The symptoms of the bug seem to be that GHC complains about the usage<br>
of (~) type equality operation, but there is no reference to that type<br>
operator in the source code. To work around the problem it suffices to<br>
add -XGADTs or -XTypeFamilies.<br>
<br>
Does this ring any bells? Can automatized tests catch such things in the future?<br>
<br>
Cheers,<br>
<br>
    Gabor<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br></div>