filepath

Ian Lynagh igloo at earth.li
Sun Dec 9 13:56:08 EST 2007


On Sun, Dec 09, 2007 at 06:11:13PM -0000, Claus Reinke wrote:
> > The first is this:
> >    Prelude System.FilePath> "." </> "foo"
> >    "./foo"
> > which means we get things like
> >    [2 of 2] Compiling GHC.Foo          ( ./GHC/Foo.hs, ./GHC/Foo.o )
> > rather than
> >    [2 of 2] Compiling GHC.Foo          ( GHC/Foo.hs, GHC/Foo.o )
> > Is there a reason the result shouldn't be "foo"?
> 
> ./foo and foo are not interchangeable:

If we want to take that position then we need to fix normalise:

    Prelude System.FilePath> normalise "./foo"
    "foo"

I'm not convinced that we do, though.


Thanks
Ian



More information about the Libraries mailing list