<div dir="ltr">That's nifty. Just about every module in the project I'm working on now has two lines like the former (and the same for Set). I like the new syntax, +1.<br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 3, 2015 at 8:15 PM Anthony Cowley <<a href="mailto:acowley@seas.upenn.edu">acowley@seas.upenn.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone,<br>
<br>
I didn't think this would see any resistance as it doesn't break<br>
anything, but this is the internet, so, if you haven't already, take a<br>
look at this GHC feature request<br>
<<a href="https://ghc.haskell.org/trac/ghc/ticket/10478" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/10478</a>><br>
<br>
The idea is that rather than writing,<br>
<br>
import Data.Map (Map)<br>
import qualified Data.Map as M<br>
<br>
you could instead write,<br>
<br>
import Data.Map (Map) as M<br>
<br>
The Map identifier would imported unqualified, while M would be<br>
introduced as an alias for the qualified import of Data.Map.<br>
<br>
Note that, currently, following a parenthesized group with the "as"<br>
keyword is a parse error. So allowing this syntax would not affect any<br>
currently working programs.<br>
<br>
I've mentioned this proposal before and gotten good response, so I<br>
finally wrote it up last night after people on IRC responded<br>
positively to it. As well as IRC and trac, I put the link up on<br>
Twitter to get it in front of a large audience, and here's what we<br>
have after a bit over 12 hours (not counting the handful of supporters<br>
in IRC):<br>
<br>
+20<br>
-2<br>
<br>
You can see the tweet at<br>
<<a href="https://twitter.com/a_cowley/status/605909841148702720" target="_blank">https://twitter.com/a_cowley/status/605909841148702720</a>><br>
<br>
I'll try to summarize the two negative votes: 1) This isn't that big a<br>
burden, and we should instead focus on controlled export of class<br>
instances; and 2) We should instead focus on exporting name spaces,<br>
and that the ordering of parentheses and the "as" keyword is too close<br>
to the existing "import Foo as F(foo)" syntax.<br>
<br>
Since there are these negative votes, I think it best if as many<br>
people as possible at least see the proposal so the GHC developers can<br>
get a better sense for the overall response.<br>
<br>
Anthony<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>