[cvs-nhc98] patch applied (hat): Parse import/export of named fields more correctly.

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:12:51 EDT 2006


Thu Jan 31 08:41:39 PST 2002  malcolm
  * 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.

    M ./src/compiler98/AuxFile.hs -67 +74
    M ./src/compiler98/AuxLabelAST.hs -4 +6
    M ./src/compiler98/Need.hs -13 +13
    M ./src/compiler98/Parse2.hs -6 +6
    M ./src/compiler98/PreImport.hs -12 +16
    M ./src/compiler98/PrettySyntax.hs -5 +2
    M ./src/compiler98/Syntax.hs -4 +4
    M ./src/compiler98/SyntaxPos.hs -4 +3
    M ./src/compiler98/TokenId.hs -12 +8
    M ./src/compiler98/TraceTrans.hs -10 +16
    M ./src/hattrans/AuxFile.hs -67 +74
    M ./src/hattrans/AuxLabelAST.hs -4 +6
    M ./src/hattrans/TraceTrans.hs -10 +16


More information about the Cvs-nhc98 mailing list