consistency in "ghc-pkg field '*' haddock-html"?
duncan.coutts at worc.ox.ac.uk
Sat Jul 19 21:32:20 EDT 2008
On Sun, 2008-07-20 at 02:25 +0100, Duncan Coutts wrote:
> On Sat, 2008-07-19 at 21:58 +0100, Claus Reinke wrote:
> > >> - some entries '/', some use '\\', some use a combination of
> > >> '/' and *unescaped* '\' (the latter two come from ghc's
> > >> cabal configure run either with or without --prefix)
> > >
> > > That's fine. They use \\ when using Haskell String format. When not then
> > > windows accepts both \ and / as path separators, it's not an escape
> > > char.
> > Since windows is so forgiving, why not be consistent and always
> > use '/'?
> We do. But if someone passes Cabal a path containing '\' then we don't
> interpret or check it, we just use it.
Erm, of course I mean we always use '\', the native path separator on
windows. I suppose we could convert paths that we're given to use '\'
rather than '/' but it's only cosmetic.
More information about the cabal-devel