Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-12-10 Thread Aleksandar Dimitrov
On Mon, Nov 26, 2012 at 06:21:33PM -0500, Albert Y. C. Lai wrote: > "cabal configure" is used by a lot of programmers. Today. Why? > > Because they use it on their own projects. They use cabal-install as > a builder, not exactly an installer. Don't most devs nowadays use sandboxing, a.k.a. cabal-

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-27 Thread Albert Y. C. Lai
On 12-11-27 04:40 AM, kudah wrote: On Tue, 27 Nov 2012 02:20:35 -0500 "Albert Y. C. Lai" wrote: When "cabal build" succeeds, it always says: (older) "registering -" (newer) "In-place registering -" That's what it says. But use ghc-pkg and other tests to verify that no registration whatsoever

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-27 Thread kudah
On Tue, 27 Nov 2012 02:20:35 -0500 "Albert Y. C. Lai" wrote: > When "cabal build" succeeds, it always says: > > (older) "registering -" > (newer) "In-place registering -" > > That's what it says. But use ghc-pkg and other tests to verify that > no registration whatsoever has happened. It doesn

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Albert Y. C. Lai
On 12-11-27 01:02 AM, kudah wrote: On Mon, 26 Nov 2012 18:21:33 -0500 "Albert Y. C. Lai" wrote: Lastly, there is no "Setup install". Use "copy" and "register". $ runghc Setup.hs --help [...] install Copy the files into the install locations. Run register. copy Copy the

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread kudah
On Mon, 26 Nov 2012 18:21:33 -0500 "Albert Y. C. Lai" wrote: > Lastly, there is no "Setup install". Use "copy" and "register". $ runghc Setup.hs --help > This Setup program uses the Haskell Cabal Infrastructure. > See http://www.haskell.org/cabal/ for more information. > > Usage: Setup.hs COMMA

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Albert Y. C. Lai
On 12-11-26 04:34 AM, Kim-Ee Yeoh wrote: Nice tip, Albert! Good to know! One question I have is, is (runghc Setup.lhs) equivalent to (cabal) in runghc Setup.lhs <$> [configure, build, install] ? Setup defaults to --global --prefix=/usr/local cabal defaults to --user --prefix=$HOME/.cabal Thi

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Kim-Ee Yeoh
Nice tip, Albert! Good to know! One question I have is, is (runghc Setup.lhs) equivalent to (cabal) in runghc Setup.lhs <$> [configure, build, install] ? On Mon, Nov 26, 2012 at 8:08 AM, Brent Yorgey wrote: > > [cabal haddock, if you want] > > cabal copy > > cabal register > > Even this does no

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-26 Thread Herbert Valerio Riedel
Brent Yorgey writes: > On Sun, Nov 25, 2012 at 06:09:26PM -0500, Albert Y. C. Lai wrote: >> If you begin with "cabal configure", the correct idiom is: >> >> cabal configure [flags] >> cabal build >> [cabal haddock, if you want] >> cabal copy >> cabal register > > Even this does not do the same t

Re: [Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-25 Thread Brent Yorgey
On Sun, Nov 25, 2012 at 06:09:26PM -0500, Albert Y. C. Lai wrote: > > If you begin with "cabal configure", the correct idiom is: > > cabal configure [flags] > cabal build > [cabal haddock, if you want] > cabal copy > cabal register Even this does not do the same thing as 'cabal install', because

[Haskell-cafe] cabal configure && cabal build && cabal install

2012-11-25 Thread Albert Y. C. Lai
Among many programmers, and/or users who manually unpack source tarball before installing, this idiom is very common: cabal configure cabal build cabal install This idiom is an urban legend, i.e., a popular error. "cabal install" re-does the "configure" and the "build" steps, among other thin