[GHC] #3070: floor(0/0) should not be defined

GHC ghc-devs at haskell.org
Mon Aug 17 17:00:54 UTC 2015


#3070: floor(0/0) should not be defined
-------------------------------------+-------------------------------------
        Reporter:  carette           |                   Owner:  squadette
            Type:  bug               |                  Status:  new
        Priority:  lowest            |               Milestone:  7.12.1
       Component:  Prelude           |                 Version:  6.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:  9276              |                Blocking:
 Related Tickets:  #10754            |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by tristes_tigres):

 Correctly implemented FP would be actually faster on (most) modern
 processors, because they implement IEEE754 in hardware.

 By the way, the whole model of FP computations in Haskell needs to be
 rethought from scratch. FP operations are influenced by the state of
 rounding flags and may raise exceptions, but Haskell type system treats
 them as pure.

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


More information about the ghc-tickets mailing list