<div dir="ltr">On Sat, May 5, 2012 at 8:36 PM, wren ng thornton <span dir="ltr">&lt;<a href="mailto:wren@freegeek.org" target="_blank">wren@freegeek.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 5/4/12 10:44 AM, Andreas Abel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
open import Data.Functor.Constant renaming (Constant to K)<br>
Maybe that could be a feature of future Haskell as well?<br>
</blockquote>
</div><br>
Seems like it should be easy enough to implement too (sayeth he who hasn&#39;t hacked on GHC). The real difficulty methinks would be in specifying the module import syntax, since there&#39;s a conflict between (1) creating a coherent integrated system for qualified, unqualified, renamed, explicit, and hidden imports (plus any other features we want to add at the same time); and (2) backwards compatibility.</blockquote>
<div><br></div><div>Actually I&#39;m pretty sure there is no such issue.  As it is, &quot;as&quot; and &quot;hiding&quot; aren&#39;t even keywords; the syntax is flexible enough that they don&#39;t need to be keywords to avoid ambiguity.  I don&#39;t think the proposed syntax is a problem either (although I think I would reuse &quot;as&quot; instead of using &quot;to&quot;, just because we already have it) since (a) it&#39;s already inside a new chunk of syntax and (b) even without that, no similar syntax supports two tokens next to each other already, except &quot;module&quot; in export lists (so not even part of this particular element, even if syntax block is similar) which is already distinguished as a keyword.</div>
<div><br></div></div>-- <br>brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br>
<br>
</div>