Data.Complex.magnitude squares using ^(2 :: Int), which is slow
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
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |