[Haskell-cafe] How to know the build dependencies?

Krzysztof Skrzętnicki gtener at gmail.com
Sun Jun 14 08:41:05 EDT 2009


If your module compiles, you can get the info by passing '-ddump-types':

TYPE SIGNATURES
    numbersTests :: Test
    testAverage :: Test
    testBindInt :: Test
TYPE CONSTRUCTORS
Dependent modules: [(MoresmauJP.Util.Numbers, False)]
Dependent packages: [HUnit-1.2.0.3, base, ghc-prim, integer]

It is, however, available only after your code has successfully compiled.

Best regards

Krzysztof Skrzętnicki

On Sun, Jun 14, 2009 at 04:22, Magicloud
Magiclouds<magicloud.magiclouds at gmail.com> wrote:
> Hi,
>  I am learning to use cabal for my code.
>  Just when I start, I met a question, is there an easy way to find
> out what packages my code depends?
>
> Thanks.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list