Proposal: Add System.FilePath.Cygwin

Hi Proposal: Add System.FilePath.Cygwin Ticket at: http://hackage.haskell.org/trac/ghc/ticket/3274 I propose we add the module System.FilePath.Cygwin to the filepath library. This module would be based on System.FilePath.Windows but with '/' as the preferred path separator, rather than '\\' as for Windows. This module would never be available as System.FilePath, and would always have to be imported specifically if wanted. The desire for this module comes from working with the Cygwin shell, which supports Windows syntax but requires the alternative separator. I have been using such a module for a few months, and find it very useful. There are no backward compatibility concerns, as it is a new separate module. Discussion deadline: 18th June 2009. Thanks, Neil

And the module should use "/cygdrive/c/foo" instead of "c:/foo".
On 6/4/09, Neil Mitchell
Hi
Proposal: Add System.FilePath.Cygwin
Ticket at: http://hackage.haskell.org/trac/ghc/ticket/3274
I propose we add the module System.FilePath.Cygwin to the filepath library. This module would be based on System.FilePath.Windows but with '/' as the preferred path separator, rather than '\\' as for Windows. This module would never be available as System.FilePath, and would always have to be imported specifically if wanted.
The desire for this module comes from working with the Cygwin shell, which supports Windows syntax but requires the alternative separator. I have been using such a module for a few months, and find it very useful.
There are no backward compatibility concerns, as it is a new separate module.
Discussion deadline: 18th June 2009.
Thanks, Neil _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

On Thu, 2009-06-04 at 14:24 +0100, Neil Mitchell wrote:
Hi
Proposal: Add System.FilePath.Cygwin
Ticket at: http://hackage.haskell.org/trac/ghc/ticket/3274
I propose we add the module System.FilePath.Cygwin to the filepath library. This module would be based on System.FilePath.Windows but with '/' as the preferred path separator, rather than '\\' as for Windows. This module would never be available as System.FilePath, and would always have to be imported specifically if wanted.
The desire for this module comes from working with the Cygwin shell, which supports Windows syntax but requires the alternative separator. I have been using such a module for a few months, and find it very useful.
There are no backward compatibility concerns, as it is a new separate module.
Discussion deadline: 18th June 2009.
Sounds ok to me. Will it share code with the .Windows module or be duplicated? Duncan

Hi
And the module should use "/cygdrive/c/foo" instead of "c:/foo".
Cygwin supports both in many programs, and we don't even actually form our own drive details, we only use what people give us. But yes, /cygdrive will be recognised and dealt with as the same as c:/
Sounds ok to me. Will it share code with the .Windows module or be duplicated?
Take a look at: http://hackage.haskell.org/packages/archive/filepath/1.1.0.2/doc/html/src/Sy... It will share code with both the Windows and Posix portions, much the same as the existing stuff does. Thanks Neil

On 04/06/2009 14:24, Neil Mitchell wrote:
Hi
Proposal: Add System.FilePath.Cygwin
Ticket at: http://hackage.haskell.org/trac/ghc/ticket/3274
I propose we add the module System.FilePath.Cygwin to the filepath library. This module would be based on System.FilePath.Windows but with '/' as the preferred path separator, rather than '\\' as for Windows. This module would never be available as System.FilePath, and would always have to be imported specifically if wanted.
The desire for this module comes from working with the Cygwin shell, which supports Windows syntax but requires the alternative separator. I have been using such a module for a few months, and find it very useful.
There are no backward compatibility concerns, as it is a new separate module.
Discussion deadline: 18th June 2009.
Cygwin is supposed to implement a POSIX-like semantics, so... can't you just use System.FilePath.Posix? If not, why not? If it's because you want the library to understand c:/, then perhaps you should stick to one style only and use /cygdrive/c instead? Cheers, Simon

Simon,
That's a very good point, and I'm really sure when I started my Cygwin
filepath module there was some critical reason why that was
unacceptable. Unfortunately, I can't remember what that reason was.
I'll try converting my project over to System.FilePath.Posix next
week, and I'll either rediscover the reason, or realise that a Cygwin
module is unnecessary.
Thanks
Neil
On Fri, Jun 5, 2009 at 10:19 AM, Simon Marlow
On 04/06/2009 14:24, Neil Mitchell wrote:
Hi
Proposal: Add System.FilePath.Cygwin
Ticket at: http://hackage.haskell.org/trac/ghc/ticket/3274
I propose we add the module System.FilePath.Cygwin to the filepath library. This module would be based on System.FilePath.Windows but with '/' as the preferred path separator, rather than '\\' as for Windows. This module would never be available as System.FilePath, and would always have to be imported specifically if wanted.
The desire for this module comes from working with the Cygwin shell, which supports Windows syntax but requires the alternative separator. I have been using such a module for a few months, and find it very useful.
There are no backward compatibility concerns, as it is a new separate module.
Discussion deadline: 18th June 2009.
Cygwin is supposed to implement a POSIX-like semantics, so... can't you just use System.FilePath.Posix? If not, why not?
If it's because you want the library to understand c:/, then perhaps you should stick to one style only and use /cygdrive/c instead?
Cheers, Simon
participants (4)
-
Duncan Coutts
-
Krasimir Angelov
-
Neil Mitchell
-
Simon Marlow