Default prefix for Cabal on Windows

Simon Marlow simonmar at
Thu Jun 16 04:20:55 EDT 2005

On 16 June 2005 09:08, Axel Simon wrote:

> On Wed, 2005-06-15 at 20:56 -0700, Daan Leijen wrote:
>> I think that "c:\Program Files" is already too cluttered, maybe we
>> should use: 
>> 1) C:\Program Files\Haskell\<package-name>-<version>
>> or
>> 2) C:\Haskell\<package-name>-<version>
>> where "Haskell" could also be "Packages" I guess.
> I strongly reject Daan's point :-). The prefix should come from the
> registry, since that is the Windows way. "C:\Program Files" doesn't
> even exists on foreign-language Windows machines. And programs which
> assume they know that C: is the right (i.e. only) hard disk are a
> pain, since you can do a network install where only Registry entries
> are local. 

Ok, so $(ProgramFiles) is determined by the registry.  Taking into
account comments so far, I think we have:

  prefix = $(ProgramFiles)\Haskell\$(PackageName)-$(Version)
  libdir = $(prefix)\$(Compiler)-$(Version)
  bindir = $(prefix)\bin

these are only defaults - users & packagers are free to change them.

Sound reasonable?


More information about the Libraries mailing list