[cvs-nhc98] Parse import/export of named fields more correctly.

Malcolm Wallace malcolm@sparud.net
Thu, 31 Jan 2002 17:41:39 +0100 (CET)


malcolm: Thu Jan 31 17:41:39 CET 2002

Update of /usr/src/master/nhc/src/compiler98
In directory hinken:/tmp/cvs-serv29948

Modified Files:
	AuxFile.hs AuxLabelAST.hs Need.hs Parse2.hs PreImport.hs 
	PrettySyntax.hs Syntax.hs SyntaxPos.hs TokenId.hs 
	TraceTrans.hs 
Log Message:
Parse import/export of named fields more correctly.
  * The compiler previously rejected export/import of a mixture of
    explicit field names and constructor names as subordinates of a
    type name.  Now we accept it.
  * The import/export decl  TC(a,b,c...)  is ambiguous, because it
    could be a class with methods, or a type with only field names
    mentioned.  Thus, there is no point in distinguishing them in the
    abstract syntax - they are sorted out in a later analysis anyway,
    in exactly the same way as the TC(..) form.
  * The .hx file mechanism now knows about field names and records them.