Ross Paterson wrote:
On Thu, Oct 02, 2003 at 06:35:10PM -0700, Iavor Diatchki wrote:aha, this is true indeed (i'd forgotton about it as it is in my shell configuration file).
hugs crashes if one tries to define unix:
unix = undefined
INTERNAL ERROR: compileGlobalFunction
I presume you have -F set to run the C preprocessor on source files
(and unix is predefined in there to 1). So the real bug here is thati see. i never realized that, it could have made an interetsing obfuscated haskell entry :-)
1 = undefined
gives the above error.
another interesting thing occurs if the following is added:
f = test' unix test' = undefined
then one gets an undefined variable:
ERROR "test.lhs":11 - Undefined variable "unix"
however this does not seem to happen if the ' is not there
The pair of single quotes protects this unix from the preprocessor.
bye iavor
-- ================================================== | Iavor S. Diatchki, Ph.D. student | | Department of Computer Science and Engineering | | School of OGI at OHSU | | http://www.cse.ogi.edu/~diatchki | ==================================================
_______________________________________________ Hugs-Bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/hugs-bugs
