From: sof Date: Sun, 19 Oct 1997 21:46:33 +0000 (+0000) Subject: [project @ 1997-10-19 21:46:33 by sof] X-Git-Tag: Approx_2487_patches~1354 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=597e10f9edca4794f0ea310b3b1fe0e249d99564;p=ghc-hetmet.git [project @ 1997-10-19 21:46:33 by sof] Added comment on special parser handling of non-qualified gtycons --- diff --git a/ghc/compiler/parser/id.c b/ghc/compiler/parser/id.c index 173f38d..04228be 100644 --- a/ghc/compiler/parser/id.c +++ b/ghc/compiler/parser/id.c @@ -273,6 +273,21 @@ qid_to_pmod(q) return mod; } +/* Darkly mysterious function used to construct "special-syntax" + identifiers. These mean their prelude versions regardless of + context, which is why they are distinguished. + + We build a gid node (rather than a qual or non-qual name node; + look at qid.ugn) with a key (number) and a string. Here's the + deal + + key + -2 function arrow -> + -1 list type constructor [], or the empty list [] + 0 unit type constructor (), or the unity value () + n n-tuple type constructor (,,,) +*/ + qid creategid(i) long i;