patch applied (hugs98): Add type signatures to numeric constants printed in corehugs mode.

Dimitry Golubovsky golubovsky at gmail.com
Fri Jan 9 23:49:13 EST 2009


Fri Jan  9 19:02:46 PST 2009  golubovsky at gmail.com
  * Add type signatures to numeric constants printed in corehugs mode.
  
  For proper generation of Yhc Core, it is necessary to distinguish between Int and Integer,
  and between Float and Double constants. This patch modifies the print routines in src/output.h
  so that in corehugs mode (that is, with +C), numeric constants are printed like this:
  (42 :: Int). This does not affect the interactive Hugs.
  In addition, when Hugs is configured with --enable-extcore, the +C option is disabled
  for interactive Hugs (it does not make much sense anyway to run Hugs with +C interactively).

    M ./src/MkDepend.in -1 +1
    M ./src/corehugs.c -2 +5
    M ./src/hugs.c -1 +5
    M ./src/output.c -13 +104

View patch online:
http://darcs.haskell.org/hugs98/_darcs/patches/20090110030246-29b23-5b705e0739228cf82d1ef967fc2f7a8561b0e4d0.gz


More information about the Cvs-hugs mailing list