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.magiclo...@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@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe