<div>On 30 August 2012 15:34, Alexander Bernauer <span dir="ltr"><<a href="mailto:alex-haskell@copton.net" target="_blank">alex-haskell@copton.net</a>></span> wrote:</div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I agree that automatic code migration can solve this issue in large<br>
parts. The Python folks have done this to mitigate the transition from<br>
version 2 to version 3 [1].<br>
<div class="im"><br>
On Thu, Aug 30, 2012 at 03:03:05PM +0200, Alexander Kjeldaas wrote:<br>
> perl -ni -e 'print unless /import Prelude hiding \(catch\)/' $(git grep<br>
> 'import Prelude hiding (catch)')<br>
<br>
</div>I don't think regular expressions are powerful enough. This example<br>
does not match on hiding multiple names, for instance.<br>
<br></blockquote><div><br></div><div>This was just an example, the CInt regexp handles multiple names, so regexps have no problems handling this.<br><div><br></div><div>And it's a simple "git grep 'import.*Prelude.*catch'" to see if this actually is a problem or not.</div>
<div><br></div><div>My point is that this works, fixes 99% of the cases, and is 1000x less work overall.</div><div><br></div><div><div>Alexander<br><br></div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But writing proper 'HsModule -> HsModule' functions should be doable.<br>
<br>
And when each release comes with a bunch of such functions, packages<br>
could be automatically migrated.<br>
<br>
Greetings<br>
<br>
Alex<br>
<br>
[1] <a href="http://docs.python.org/library/2to3.html" target="_blank">http://docs.python.org/library/2to3.html</a><br>
<br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAlA/a/oACgkQevm6Dd/q44nJXQCffaxEJ/NZEftgoZ7viAWMuBO3<br>
+jkAnRTw+VCMQn1k9NibyKpkGMtwvrQw<br>
=ds3M<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>