[cvs-nhc98] patch applied (hat): Add preliminary support for " wrapping" rather than transforming a module.

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Jan 29 13:33:57 EST 2007


Mon Jan 29 10:26:19 PST 2007  Malcolm.Wallace at cs.york.ac.uk
  * Add preliminary support for "wrapping" rather than transforming a module.
  This is incomplete, but basically the idea is to strip the module down
  to reveal just its interface, then add the minimal amount of boilerplate
  around that, to convert datatypes.  Thus, at runtime the original
  untransformed code will be executed, with a tiny layer to make it
  interact with fully traced code.
  
  Eventually, this will permit libraries to be sucked into Hat with
  greater ease.  There is still a lot to be done before it works however.

    M ./src/hattrans/Flags.hs +3
    M ./src/hattrans/HatTrans.hs -3 +10
    M ./src/hattrans/Makefile -1 +1
    A ./src/hattrans/Wrapper.hs


More information about the Cvs-nhc98 mailing list