No LambdaCase
[cabal.git] / travis-solver-debug-flags.sh
blobfafc18b6dbd4139feba61467a5b193e494d1f20e
1 #!/bin/sh
3 # Build cabal with solver debug flags enabled.
5 # We use a sandbox, because cabal-install-1.24.0.0's new-build command tries to
6 # build tracetree's dependencies with the inplace Cabal, which leads to compile
7 # errors. We also need to skip the tests, because debug-tracetree prints the
8 # whole solver tree as JSON.
10 cabal update
11 cd cabal-install
12 cabal sandbox init
13 cabal sandbox add-source ../Cabal
14 cabal install --dependencies-only --constraint "cabal-install +debug-tracetree +debug-conflict-sets"
15 cabal configure --ghc-option=-Werror --constraint "cabal-install +debug-tracetree +debug-conflict-sets"
16 cabal build