On Thu, Feb 16, 2012 at 12:56 AM, Kazu Yamamoto <[email protected]> wrote:
> 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.

HTH,

[1] http://hackage.haskell.org/packages/archive/skein/0.1.0.5/skein.cabal

-- 
Felipe.

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to