Re: [Haskell-cafe] Extracting exposed modules from an installed library

2013-03-21 Thread Ivan Lazar Miljenovic
On 21 March 2013 19:52, Corentin Dupont wrote: > Hi Joachim, > that's right thanks, but I was looking for a way to do that from a program. > ghc-pkg does not seems to expose any library... http://hackage.haskell.org/packages/archive/Cabal/1.16.0.3/doc/html/Distribution-InstalledPackageInfo.html#t

Re: [Haskell-cafe] Extracting exposed modules from an installed library

2013-03-21 Thread Corentin Dupont
Hi Joachim, that's right thanks, but I was looking for a way to do that from a program. ghc-pkg does not seems to expose any library... On Wed, Mar 20, 2013 at 11:23 PM, Joachim Breitner wrote: > Hi, > > Am Mittwoch, den 20.03.2013, 00:34 +0100 schrieb Corentin Dupont: > > Hi Cafe! > > I'm looki

Re: [Haskell-cafe] Extracting exposed modules from an installed library

2013-03-20 Thread Joachim Breitner
Hi, Am Mittwoch, den 20.03.2013, 00:34 +0100 schrieb Corentin Dupont: > Hi Cafe! > I'm looking for how to extract the exposed modules (as a list of > strings) from an installed library, giving the library name. > I can see some structures in Cabal (InstalledPackageInfo) and some > functions in ghc

[Haskell-cafe] Extracting exposed modules from an installed library

2013-03-19 Thread Corentin Dupont
Hi Cafe! I'm looking for how to extract the exposed modules (as a list of strings) from an installed library, giving the library name. I can see some structures in Cabal (InstalledPackageInfo) and some functions in ghc-pkg.hs in GHC, but nothing readily useable... Thanks, Corenti __