[cvs-nhc98] patch applied (hat): Changed definition of syntax tree

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:00:16 EDT 2006


Tue Nov 28 10:13:35 PST 2000  olaf
  * Changed definition of syntax tree
  from
  
  data Fun id = Fun  [Pat id] [(Exp id,Exp id)] (Decls id)
  
  data Alt id = Alt  (Pat id) [(Exp id,Exp id)] (Decls id)
  
  to
  
  data Fun id = Fun  [Pat id] (Rhs id) (Decls id)
  
  data Alt id = Alt  (Pat id) (Rhs id) (Decls id)
  
  data Rhs id = Unguarded (Exp id)
              | Guarded [(Exp id,Exp id)]  -- the list has at least one element
  
  
  so that lots of artificial True guards can be omitted.
  This change obviously required small changes in many modules.
  
  It is unclear if more or less space is required now.
  The prelude module DErrNo.hs seems to require more space during compilation now.

    M ./src/compiler98/Case.hs -44 +118
    M ./src/compiler98/DbgDataTrans.hs -9 +14
    M ./src/compiler98/DbgTrans.hs -58 +74
    M ./src/compiler98/DeriveBinary.hs -41 +50
    M ./src/compiler98/DeriveBounded.hs -8 +10
    M ./src/compiler98/DeriveEnum.hs -13 +28
    M ./src/compiler98/DeriveEq.hs -6 +16
    M ./src/compiler98/DeriveIx.hs -41 +69
    M ./src/compiler98/DeriveOrd.hs -33 +61
    M ./src/compiler98/DeriveRead.hs -4 +4
    M ./src/compiler98/DeriveShow.hs -54 +79
    M ./src/compiler98/Extract.hs -21 +24
    M ./src/compiler98/FFITrans.hs -6 +6
    M ./src/compiler98/FixSyntax.hs -9 +16
    M ./src/compiler98/MkSyntax.hs -6 +5
    M ./src/compiler98/Need.hs -12 +17
    M ./src/compiler98/Parse.hs -3 +10
    M ./src/compiler98/PrettySyntax.hs -9 +16
    M ./src/compiler98/Remove1_3.hs -26 +20
    M ./src/compiler98/Rename.hs -12 +17
    M ./src/compiler98/RmClasses.hs -17 +22
    M ./src/compiler98/SccModule.hs -11 +16
    M ./src/compiler98/Syntax.hs -2 +5
    M ./src/compiler98/SyntaxPos.hs -1 +7
    M ./src/compiler98/Type.hs -16 +20
    M ./src/compiler98/TypeCtx.hs -1 +1


More information about the Cvs-nhc98 mailing list