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

Malcolm Wallace <[email protected]> Fri, 23 Mar 2007 10:21:52 +0000
Newsgroups gmane.comp.lang.haskell.hugs.bugs,gmane.comp.lang.haskell.cvs.ghc
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
Sven Panne <[email protected]> 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