ghc-pkg 6.2 incorrectly parses commas within quotes

Ashley Yakeley ashley at semantic.org
Sun Jan 11 19:02:15 EST 2004


In article <40016305.4040402 at aedion.de>,
 Sven Panne <Sven.Panne at aedion.de> 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



More information about the Glasgow-haskell-bugs mailing list