Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
6bfb5a20
Commit
6bfb5a20
authored
Aug 06, 2013
by
tibbe
Committed by
Duncan Coutts
Aug 31, 2013
Browse files
Add basic sandbox documentation
parent
6f99105f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/doc/installing-packages.markdown
View file @
6bfb5a20
...
@@ -928,6 +928,45 @@ This command takes the following option:
...
@@ -928,6 +928,45 @@ This command takes the following option:
: Append today's date (in "YYYYMMDD" format) to the version number for
: Append today's date (in "YYYYMMDD" format) to the version number for
the generated source package. The original package is unaffected.
the generated source package. The original package is unaffected.
## setup sandbox ##
By default, any dependencies of the package are installed into the
global or user package databases (e.g. using
`cabal install
--only-dependencies`
). If you're building several different packages
that have incompatible dependencies, this can cause the build to fail.
By installing all dependencies in a package database specific to each
sandbox, these problems can be avoided.
Typical usage:
~~~~~~~~~~~~~~~~
runhaskell Setup.hs sandbox init # only once per directory
runhaskell Setup.hs configure
runhaskell Setup.hs build
~~~~~~~~~~~~~~~~
### setup sandbox init ###
Create a sandbox. This command only needs to be run once per build
directory (i.e. the directory in which the
`.cabal`
file resides).
### setup sandbox delete ###
Delete the sandbox and all package's installed into it.
### setup sandbox add-source ###
Make package source directory available to the sandbox. This lets you
depend on yet unreleased packages while developing your current
package.
Example usage:
~~~~~~~~~~~~~~~~
runhaskell Setup.hs sandbox add-source ../otherpkg
runhaskell Setup.hs configure
~~~~~~~~~~~~~~~~
[
dist-simple
]:
../libraries/Cabal/Distribution-Simple.html
[
dist-simple
]:
../libraries/Cabal/Distribution-Simple.html
[
dist-make
]:
../libraries/Cabal/Distribution-Make.html
[
dist-make
]:
../libraries/Cabal/Distribution-Make.html
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment