0/0 => "nan", not "NaN". Also, empty hsc2hs dir and "invalid predicate `-wholename'"

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Mar 23 06:21:52 EDT 2007


Sven Panne <sven.panne at aedion.de> wrote:

> What's even worse: I've just seen that neither Hugs nor nhc98
> implement isNaN,  isInfinte, isDenormalized, isNegativeZero and
> isIEEE. :-( GHC does it via  some bit-fiddling in StgPrimFloat.c, but
> it is unclear to me why the stuff  from <math.h> (isnan() etc.) is not
> simply used instead. Does anybody  remember? These macros are C99, I
> think, but do we really support older C  standards?

If I recall correctly, at the time nhc's numeric code was first written
in 1994, the C99 standard was not widely available.  :-)

Regards,
    Malcolm


More information about the Hugs-Bugs mailing list