GaloisInc/SHA — pull request #4 by trofi (2012-11-21 20:47:32+00:00)
Title: cabal: make depends on test libraries optional

before the patch 'QuickCheck' and friends were required unconditionally:

$ runhaskell Setup.hs configure -v -ftest | grep QuickCheck
Dependency QuickCheck ==2.*: using QuickCheck-2.5.1.1
$ runhaskell Setup.hs configure -v -f-test | grep QuickCheck
Dependency QuickCheck ==2.*: using QuickCheck-2.5.1.1

the patch fixes it by putting 'build-depends' under condition

$ runhaskell Setup.hs configure -v -f-test | grep -i quickcheck
$ runhaskell Setup.hs configure -v -ftest | grep -i quickcheck
Dependency QuickCheck ==2.*: using QuickCheck-2.5.1.1

Signed-off-by: Sergei Trofimovich