- 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 '/'? That also reduces the number of escapes as well as the
danger of missing escapes when going via several levels of
shells/interpretation. Only the double quotes to protect spaces
remain necessary.
It's not strictly necessary for ghc-pkg to know where index files are
that cover various packages but it would be nice to do something better
there. People ask for Cabal to maintain an index over all packages
though it's not clear where it should put this.
For context: I've just extended the haskellmode plugins for Vim
to handle docs for libraries outside code+extra (not yet online),
and while it was no big deal working around all those inconsistencies,
it certainly seemed unnecessary and ugly.
Right now, only core+extralibs have a unified index, and that can
be found by all kinds of ugly guesses (though ghc-paths will help
there in the future). Once Cabal generates and maintains a master
index, perhaps there could simply be a standard file pointing to it,
in the haddock-html dirs?
Claus
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc