From 597e10f9edca4794f0ea310b3b1fe0e249d99564 Mon Sep 17 00:00:00 2001 From: sof Date: Sun, 19 Oct 1997 21:46:33 +0000 Subject: [PATCH] [project @ 1997-10-19 21:46:33 by sof] Added comment on special parser handling of non-qualified gtycons --- ghc/compiler/parser/id.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; -- 1.7.10.4