*
The "Program Files" folder usually has at least one space in its
path, which could cause a lot of problems for Unix-centric software.
For this reason alone, I always install anything that isn't
Windows-specific into "c:\software" instead of "C:\Program Files." If
the default prefix is going to be "Program Files" then there should be
a note in the Cabal documentation that the application should expect to
be installed into a directory with spaces in the path.
* Even if a program is written in Haskell and is built with
Cabal, I imagine that people who write Windows Haskell software for non-developers
will not expect users to install the software via Cabal. Instead, they
will provide an MSI with a GUI installer. That means that, for the most
part, the only users of Cabal on Windows will be programmers. So, I
think that the Cabal experience on Windows should be
optimized for us. In particular, if I run "runghc Setup.hs install" when
I am using MSYS Bash, I want the package to install into "/usr/local/"
just like it would on Unix.
* I don't think it makes sense for executable packages to have
"Haskell" in their prefix unless they are explicitly "for Haskell." For
example, Darcs isn't a Haskell tool; it is a versioning tool that
happens to be implemented in Haskell, so it wouldn't make sense for it
to be installed into "C:\Program Files\Haskell\Darcs-1.0," just like we
wouldn't want it installed into "C:\Prgoram Files\C#\Darcs-1.0" if it
was written in C#. Conversely, library packages are presumable
Haskell-specific and so it makes sense for them to have "Haskell" in
their prefix.
Just my 2 cents.
- Brian
- Brian
[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetfolderpath.asp
[2]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/ch11b.asp
- Brian