
#8539: Data.Complex shouldn't use default implementation of (**) -------------------------------------+------------------------------------- Reporter: jjaredsimpson | Owner: Type: bug | Status: patch Priority: low | Milestone: Component: Prelude | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Incorrect result | Difficulty: Easy (less than 1 at runtime | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by yalas): And many other functions can't handle infinity: {{{ Prelude Data.Complex> sqrt (1/0) :: Double Infinity Prelude Data.Complex> sqrt (1/0) :: Complex Double NaN :+ NaN Prelude Data.Complex> log (1/0) :: Double Infinity Prelude Data.Complex> log (1/0) :: Complex Double NaN :+ NaN Prelude Data.Complex> exp (1/0) :: Double Infinity Prelude Data.Complex> exp (1/0) :: Complex Double NaN :+ NaN Prelude Data.Complex> (1/0) * (1/0) :: Double Infinity Prelude Data.Complex> (1/0) * (1/0) :: Complex Double NaN :+ NaN }}} Do we need tickets for them too? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8539#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler