Cabal suggestions

Ross Paterson ross at soi.city.ac.uk
Mon Dec 20 05:49:28 EST 2004


On Sat, Dec 18, 2004 at 10:47:34PM -0500, Isaac Jones wrote:
> Ross Paterson <ross at soi.city.ac.uk> writes:
> > * setup install and register have --user and --system flags, which seem
> >   to offer a choice at that point, but one has to have anticipated this
> >   choice when supplying the --prefix flag to configure.  How about a
> >   --user-prefix flag to configure (with a sensible default) to say where
> >   user packages are installed?
> 
> So the idea is that if they said "./setup configure --user=~/usr/
> --system=/usr/local/" then it would install it in the appropriate
> place when they said "./setup install --user"?
> 
> What should happen if they say "./setup install --prefix=/usr/bin" and
> "./setup install --user"?

In that case the package would be installed relative to the default value
of --user-prefix, say the value of System.Directory.getHomeDirectory.


More information about the Libraries mailing list