ghc-pkg 6.2 incorrectly parses commas within quotes

Sven Panne Sven.Panne at aedion.de
Sun Jan 11 09:51:49 EST 2004


Ashley Yakeley wrote:
> The 6.2 version of ghc-pkg is incorrectly parses commas within quotes.  [...]

This was a side-effect of a slighty obscure feature of ghc-pkg. I've made
things more robust now. From the CVS log:

------------------------------------------------------------------------------
Fixed the previous commit: All lists of Strings in package configuration files
were split at commas to allow list-based variables, but this broke perfectly
sensible things like

    ["-Wl,-rpath,/usr/lib/jvm-bridge/lib/"]

into

    ["-Wl","-rpath","/usr/lib/jvm-bridge/lib/"]

which is plainly wrong. Now we do this *only* when a variable occurs on its own,
like:

    ["${deps}","foo"] => ["base","haskell98","network","foo"]

I have slight doubts about this obscure feature, but Sigbjorn seems to want
it...
------------------------------------------------------------------------------

I can't see a good workaround, either, so you'll probably have to wait for the
next release...   :-(

Cheers,
    S.



More information about the Glasgow-haskell-bugs mailing list