Cabal 1.10.1.0 has some annoying parser bug. It does not handle if-else in test sections. I'm trying to find a workaround, but the situation is somewhat complicated:
We could depend on the library instead of doing any if-else checks in test-suite sections. But this does not work; We use Hspec for the test suite, and Hspec pulls in an other version of silently. So we end up with a dependency on two different versions of the same library, and Cabal fails.
Not sure what to do yet. But currently I think the easiest way to get around this would be to not use Hspec for testing silently.
Cabal 1.10.1.0 has some annoying parser bug. It does not handle
if-else
in test sections. I'm trying to find a workaround, but the situation is somewhat complicated:We could depend on the library instead of doing any
if-else
checks intest-suite
sections. But this does not work; We use Hspec for the test suite, and Hspec pulls in an other version of silently. So we end up with a dependency on two different versions of the same library, and Cabal fails.Not sure what to do yet. But currently I think the easiest way to get around this would be to not use Hspec for testing silently.