logo       

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

lang.haskell.glasgow.bugs

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

In article <40016305.4040402@xxxxxxxxx>,
Sven Panne <Sven.Panne@xxxxxxxxx> wrote:

> 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...

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}.

--
Ashley Yakeley, Seattle WA


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

News | FAQ | advertise