ghc-pkg and -l

Axel Simon A.Simon at ukc.ac.uk
Fri May 9 13:24:53 EDT 2003


Hi,

I just found out that the semantics of ghc-pkg has changed between 5.04
and the recent HEAD:

~/source/gtk2hs:$ ghc-pkg-5.04 -f
/home/as49/source/gtk2hs/localpackage.conf -l
defaultPackage

~/source/gtk2hs:$ ghc-pkg-5.05 -f
/home/as49/source/gtk2hs/localpackage.conf -l
/home/as49/source/gtk2hs/localpackage.conf:
    defaultPackage
/home/as49/local/lib/ghc-5.05/package.conf:
    rts, base, haskell98, network, haskell-src, readline, OpenGL, GLUT,
    unix, lang, concurrent, posix, util, data, text, net, hssource,
    greencard

This might be an improvement for the user but it is highly annoying in
shell scripts. I used to grep for gtk2 which now matches the file path.
Furthermore I'd like to know if a certain package is installed in the
given package file, so I don't really want to see what's globally
available.

If this verbosity is desired, could we have an -e flag which test if a
certain package exists?

Thanks,
Axel.




More information about the Glasgow-haskell-bugs mailing list