[Haskell] System.FilePath survey
kr.angelov at gmail.com
Fri Feb 3 06:55:48 EST 2006
[move to libraries at haskell.org]
Yes. I agree here. There should be two modules say:
System.FilePath.Posix & System.FilePath.Windows. There should be a
third module System.FilePath that have to use the native path. It
should switch between the Posix and Windows implementations either at
runtime (Hugs, NHC) or compile time (GHC).
2006/2/3, John Meacham <john at repetae.net>:
> On Fri, Feb 03, 2006 at 11:29:34AM +0000, Neil Mitchell wrote:
> > I wrote a separate FilePath module for Yhc, which is available at:
> > http://www.cs.york.ac.uk/fp/darcs/yhc-devel/src/compiler98/Util/FilePath.hs
> > The advantage of this one is that it doesn't use any #ifdef's, so is
> > entirely portable between Unix/Windows - important if you want to be
> > able to create a binary that runs anywhere.
> also if you want to manipulate windows paths from unix and vice versa.
> any standard library should support that sort of thing.
> John Meacham - ⑆repetae.net⑆john⑈
> Haskell mailing list
> Haskell at haskell.org
More information about the Haskell