
On Fri, 2007-08-24 at 16:05 +0100, Neil Mitchell wrote:
Hi
C:\program files\common files\foo-1.0\mylibdata.txt
Eek. The purpose of Common Files is for things that are shared between multiple programs, not for things that might move. Having C:\Program Files\Haskell\Fixed would be a lot better than polluting a directory that really should have been killed ages ago.
How about just C:\Program Files\Haskell\$datasubdir
where should documentation go?
C:\program files\haskell\doc\html\foo\index.html C:\program files\haskell\doc\html\foo\foo.haddock
Anywhere you want, users will never find it without a shortcut on the start menu or some UI in their interpreter. Users should not be prodding around in Program Files, and in default Windows installs its hidden and you have to click a message "i really know what i'm doing" to see inside it.
Since you don't care, how about: $prefix\doc\$pkgid\ eg C:\Program Files\Haskell\doc\foo-1.0\ It will at least be relative to prefix unlike the datadir which is fixed for libs. As for UI, that's the job of a windows installer for a package imho and something like GUIHaskell can use ghc-pkg to find where the docs were installed (if at all). Sadly there's nothing similar for hugs. I've attached a patch with my suggestion. Someone who cares about Windows should test and apply it, or make a better patch. Actually, said Windows dev would also need to update the user guide to say what the default paths are and then close this bug: http://hackage.haskell.org/trac/hackage/ticket/116 Duncan