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

2009-06-14 Thread Deniz Dogan
2009/6/14 Gwern Branwen gwe...@gmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, Jun 13, 2009 at 10:22 PM, Magicloud Magiclouds 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

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

2009-06-14 Thread Claus Reinke
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? If you've managed to get your code to compile, ghc --show-iface Main.hi is perhaps the easiest way (ghc --make and ghci will also report package

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

2009-06-14 Thread Krzysztof Skrzętnicki
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]

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

2009-06-14 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sun, Jun 14, 2009 at 6:05 AM, Deniz Dogan wrote: Someone really ought to write a tool for this... Well, it's an issue of time. Just building and adding the deps is fast and straightforward. A tool I'd need to know about, have installed, and

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

2009-06-14 Thread Deniz Dogan
2009/6/14 Gwern Branwen gwe...@gmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sun, Jun 14, 2009 at 6:05 AM, Deniz Dogan wrote: Someone really ought to write a tool for this... Well, it's an issue of time. Just building and adding the deps is fast and straightforward. A tool

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

2009-06-14 Thread Toby Miller
On Jun 14, 2009, at 6:05 AM, Deniz Dogan wrote: 2009/6/14 Gwern Branwen gwe...@gmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, Jun 13, 2009 at 10:22 PM, Magicloud Magiclouds wrote: Hi, I am learning to use cabal for my code. Just when I start, I met a question, is there

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

2009-06-13 Thread Magicloud Magiclouds
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

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

2009-06-13 Thread Gwern Branwen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Sat, Jun 13, 2009 at 10:22 PM, Magicloud Magiclouds 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. Not really. The easiest