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

Fri Jan 9 19:02:46 PST 2009 golubovsky@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-5b705e07...
participants (1)
-
Dimitry Golubovsky