logo       

Re: ghc-pkg 6.2 incorrectly parses commas within quotes: msg#00017

lang.haskell.glasgow.bugs

Subject: Re: ghc-pkg 6.2 incorrectly parses commas within quotes

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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise