Monday, 17 June 2013

Reusing a cabal-dev sanboxed build environment

If you're installing many cabal packages from the same project, such as the clckwrks code base, and you're using sand-boxed builds, it's quicker to install the main package and then reuse the same sandbox environment.

If all the packages have the same dependencies then you can simple tell cabal-dev to use the same sanbox with the -s or --sandbox switch.

Remembering that the default directory for a cabal-dev sandbox is <package-dir>/cabal-dev, installing clckwrks can become as simple as cabal-dev install -s../clckwrks/cabal-dev.

No comments:

Post a Comment