+1<br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 3:36 PM, Neil Mitchell <span dir="ltr"><<a href="mailto:ndmitchell@gmail.com">ndmitchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I agree with the idea behind this proposal, but am pretty sure it will<br>
break quite a few filepath things that I maintain. So +1, but also +1<br>
for a really strong release announcement and version bump.<br>
<br>
The problem with filepaths is that they lack much structure, and are<br>
very system dependent - meaning every change will break something. A<br>
lovely abstract type would be wonderful, but no one has yet released<br>
such a library on hackage...<br>
<br>
Thanks, Neil<br>
<br>
<br>
2009/11/4 Duncan Coutts <<a href="mailto:duncan.coutts@googlemail.com">duncan.coutts@googlemail.com</a>>:<br>
<div><div></div><div class="h5">> On Wed, 2009-11-04 at 10:00 +0000, Simon Marlow wrote:<br>
><br>
>> I've amended the patch as suggested above, it turned out to be not too<br>
>> hard.<br>
><br>
> [..]<br>
><br>
>> Neil's comprehensive test suite still passes with the new patch.<br>
>><br>
>> Ticket, with new patch attached:<br>
>><br>
>> <a href="http://hackage.haskell.org/trac/ghc/ticket/2034" target="_blank">http://hackage.haskell.org/trac/ghc/ticket/2034</a><br>
>><br>
>> The discussion deadline has long passed, so I propose we have another 2<br>
>> weeks (18 November).<br>
><br>
> I support this new proposal.<br>
><br>
><br>
> To summarise for people who have not been paying full attention:<br>
><br>
> Currently:<br>
> takeDirectory "Main.hs" = ""<br>
><br>
> Proposed:<br>
> takeDirectory "Main.hs" = "./"<br>
><br>
> The purpose being that one can always take the directory and get a valid<br>
> path to use with a file system function, eg createDirectory.<br>
><br>
><br>
> Unchanged behaviour:<br>
><br>
> "./" </> "Main.hs" = "./Main.hs"<br>
><br>
> It was initially proposed that </> eat "./" on the left hand side but<br>
> the current proposal leaves the behaviour of </> unchanged.<br>
><br>
> Duncan<br>
><br>
> _______________________________________________<br>
> Libraries mailing list<br>
> <a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
><br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
</div></div></blockquote></div><br>