I can live with it and I probably have as many packages as anyone that will be broken by it. =/<div><br></div><div>Things like</div><div><br></div><div><a href="http://hackage.haskell.org/packages/archive/categories/0.58.0.5/doc/html/src/Control-Category-Cartesian-Closed.html">http://hackage.haskell.org/packages/archive/categories/0.58.0.5/doc/html/src/Control-Category-Cartesian-Closed.html</a> </div>
<div><br></div><div>will need a pretty invasive rewrite, but the simplicity is worth it, and it makes for much better operators at the type level.</div><div><br></div><div>I can pre-emptively change the packages so as to be compatible with both, so I have an upgrade path, which makes it all good.</div>
<div><br></div><div>-Edward</div><div><br><div class="gmail_quote">On Wed, Jan 18, 2012 at 9:27 AM, Simon Peyton-Jones <span dir="ltr">&lt;<a href="mailto:simonpj@microsoft.com">simonpj@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear GHC users<br>
<br>
As part of beefing up the kind system, we plan to implement the &quot;Type operators&quot; proposal for Haskell Prime<br>
<a href="http://hackage.haskell.org/trac/haskell-prime/wiki/InfixTypeConstructors" target="_blank">http://hackage.haskell.org/trac/haskell-prime/wiki/InfixTypeConstructors</a><br>
<br>
GHC has had type operators for some kind, so you can say<br>
        data a :+: b = Left a | Right b<br>
but you can only do that for operators which start with &quot;:&quot;.<br>
<br>
As part of the above wiki page you can see the proposal to broaden this to ALL operators, allowing<br>
        data a + b = Left a | Right b<br>
<br>
Although this technically inconsistent the value page (as the wiki page discussed), I think the payoff is huge. (And &quot;A foolish consistency is the hobgoblin of little minds&quot;, Emerson)<br>
<br>
<br>
This email is (a) to highlight the plan, and (b) to ask about flags.  Our preferred approach is to *change* what -XTypeOperators does, to allow type operators that do not start with :.  But that will mean that *some* (strange) programs will stop working. The only example I have seen in tc192 of GHC&#39;s test suite<br>

        {-# LANGUAGE TypeOperators #-}<br>
        comp :: Arrow (~&gt;) =&gt; (b~&gt;c, c~&gt;d)~&gt;(b~&gt;d)<br>
      comp = arr (uncurry (&gt;&gt;&gt;))<br>
<br>
Written more conventionally, the signature would look like<br>
        comp :: Arrow arr =&gt; arr (arr b c, arr c d) (arr b d)<br>
      comp = arr (uncurry (&gt;&gt;&gt;))<br>
or, in infix notation<br>
        {-# LANGUAGE TypeOperators #-}<br>
        comp :: Arrow arr =&gt; (b `arr` c, c `arr` d) `arr` (b `arr` d)<br>
      comp = arr (uncurry (&gt;&gt;&gt;))<br>
<br>
But tc192 as it stands would become ILLEGAL, because (~&gt;) would be a type *constructor* rather than (as now) a type *variable*.  Of course it&#39;s easily fixed, as above, but still a breakage is a breakage.<br>
<br>
It would be possible to have two flags, so as to get<br>
  - Haskell 98 behaviour<br>
  - Current TypeOperator behaviuor<br>
  - New TypeOperator behaviour<br>
but it turns out to be Quite Tiresome to do so, and I would much rather not.  Can you live with that?<br>
<br>
<br>
<a href="http://chrisdone.com/posts/2010-10-07-haskelldb-and-typeoperator-madness.html" target="_blank">http://chrisdone.com/posts/2010-10-07-haskelldb-and-typeoperator-madness.html</a><br>
<br>
<br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</blockquote></div><br></div>