[cvs-nhc98] patch applied (hat): Removed bug that tracing did not handle newtype.

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 06:59:18 EDT 2006


Fri Aug 18 11:09:26 PDT 2000  olaf
  * Removed bug that tracing did not handle newtype.
  The problem was that the compiler replaces the data constructor
  defined by a newtype by the function id (if the data constructor
  has no arguments, which is always the case after the tracing transformation).
  This function id was however the transformed function, that is, it was no
  longer the simple identity.
  To solve the problem I introduced a new function _id in the Prelude
  which is not transformed and can hence be used to replace the
  data constructor.
  Also added type declarations and comments.

    M ./src/compiler98/DbgDataTrans.hs -1 +6
    M ./src/compiler98/FSLib.hs -13 +43
    M ./src/compiler98/FixSyntax.hs -8 +59
    M ./src/compiler98/Main.hs +1
    M ./src/compiler98/Remove1_3.hs -19 +66
    M ./src/compiler98/Rename.hs -1 +3
    M ./src/compiler98/TokenId.hs -1 +13
    M ./src/compiler98/TokenInt.hs -4 +34
    M ./src/compiler98/TypeData.hs -4 +14
    M ./src/old/runtime/io.c +1


More information about the Cvs-nhc98 mailing list