#1298: Data.Complex.phase does unnecessary pattern match
----------------------+-----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Prelude | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Os: Unknown
Testcase: | Architecture: Unknown
----------------------+-----------------------------------------------------
The Data.Complex.phase function contains this line:
phase (0 :+ 0) = 0 -- SLPJ July 97 from John Peterson
This is not necessary since atan2 (invoked on the following line) is
defined such that it returns 0 in this case already.
-- Lennart
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1298>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs