logo       

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

lang.haskell.glasgow.bugs

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

Ashley Yakeley wrote:
Might it not be better to do it this way?

deps = base,haskell98,network

[${deps},"foo"] => (expand $-reference)
[base,haskell98,network,"foo"] => (quote things)
["base","haskell98","network","foo"]

The idea is that unquoted things get implicitly quoted, so you don't need to quote ${deps}.

I don't have very strong feelings about this, I just changed it in a
hopefully non-intrusive way. IMHO this feature is useless, anyway,
expanding during package installation time can easily be accomplished
by sed and friends...

Cheers,
S.


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

News | FAQ | advertise