[Haskell-cafe] Test suite sections of cabal
Kazu Yamamoto ( 山本和彦 )
kazu at iij.ad.jp
Thu Feb 16 10:24:19 CET 2012
>> 2) build-dependency
>>
>> I need to repeat all build-dependency of a library section to
>> a test suite section. Specifying the library itself to
>> build-dependency of a test suite section does not work.
>> This violates the DRY philosophy.
>
> You may specify the same library as a dependency given that you use
> different "hs-source-dirs". For example, see skein's Cabal file [1].
> Of course, you won't be able to directly test any internal function.
Do you mean that if we separate directories for src and test,
build-depends of test-suite works, and if we don't separate, it does
not work?
--Kazu
More information about the Haskell-Cafe
mailing list