[Haskell-cafe] Re: Haskell Platform - changing the global install dir

Paul Moore p.f.moore at gmail.com
Tue Oct 6 08:34:01 EDT 2009

2009/10/6 Mikhail Glushenkov <the.dead.shall.rise at gmail.com>:
> Hi Paul,
> Paul Moore <p.f.moore <at> gmail.com> writes:
>> Is there a way I could have specified that I want the global install
>> directory in D:\Apps\Haskell? I guess I could hack my cabal\config
>> file (and presumably change PATH) but that seems a bit ugly.
> A bit ugly? Why? That's precisely what the config files are for.

Looks like it also doesn't work :-(

>grep global -A7 "D:\Documents and Settings\uk03306\Application Data\cabal\config"
install-dirs global
  -- prefix: "D:\\Apps\\Haskell\\Cabal"
  -- bindir: $prefix\bin
  -- libdir: $prefix
  -- libsubdir: $pkgid\$compiler
  -- libexecdir: $prefix\$pkgid
  -- datadir: "D:\\Apps\\Haskell\\Cabal"
  -- datasubdir: $pkgid

>cabal install mersenne-random -fuse_sse2
Resolving dependencies...
Downloading mersenne-random-1.0...
Configuring mersenne-random-1.0...
Preprocessing library mersenne-random-1.0...
Building mersenne-random-1.0...
[1 of 1] Compiling System.Random.Mersenne ( System\Random\Mersenne.hs,
dist\build\System\Random\Mersenne.o )
D:\Utils\Mingw\bin\ar.exe: creating dist\build\libHSmersenne-random-1.0.a
Installing library in C:\Program Files\Haskell\mersenne-random-1.0\ghc-6.10.4
Registering mersenne-random-1.0...
Reading package info from "dist\\installed-pkg-config" ... done.
Writing new package config file... done.

Note - "Installing library in C:\Program

>cabal --version
cabal-install version 0.6.2
using version of the Cabal library

http://hackage.haskell.org/trac/hackage/ticket/365 may be relevant,
but it says it's fixed :-(


More information about the Haskell-Cafe mailing list