#2450: Data.Complex.magnitude squares using ^(2 :: Int), which is slow
-------------------------------+--------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.10.1
Component: libraries/base | Version: 6.8.3
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Unknown
-------------------------------+--------------------------------------------
Data.Complex.magnitude squares using `^(2 :: Int)`, which is slow. Either
it should use `sqr x = x * x` or a rule should rewrite `e ^ (2 :: Int)` to
do so (or perhaps both; the RULE for general cases, and the manual `sqr`
for hugs etc).
More detail in this thread:
http://www.haskell.org/pipermail/haskell-cafe/2008-July/045327.html
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2450>
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