[GHC] #9530: min / max do not always return a NaN when one of the arguments is NaN

GHC ghc-devs at haskell.org
Sun Aug 31 10:30:39 UTC 2014


#9530: min / max do not always return a NaN when one of the arguments is NaN
-------------------------------------+-------------------------------------
              Reporter:  jrp         |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Prelude     |          Version:  7.8.3
            Resolution:              |         Keywords:
      Operating System:  MacOS X     |     Architecture:  Unknown/Multiple
       Type of failure:  Incorrect   |       Difficulty:  Easy (less than 1
  result at runtime                  |  hour)
             Test Case:              |       Blocked By:
              Blocking:              |  Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by jrp):

 ... also signum NaN returns -1.0, rather than NaN

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9530#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list