Int with Prelude-functions works, but Integer with generic-list-functions doesn't
Hello,
I've written a program for fast online multiplication of real numbers, it should produce for an infinite input-sequence an infinite output-sequence. If I'm using Integer with related generic-list-functions, computation stops at step 32777. Windows Task-Manager tells me: CPU-Usage 100% , Memory-Allocation increasing. After a few minutes over 600MB memory is used by my program. But if I'm using Int with Prelude-functions computation doesn't stop and this is exactly what I'm expecting. I tried to overwrite the type of the Prelude functions /length/, /take/ etc. to Integer, but the same problem at the same step occurs. A friend of mine compiled my program under Linux and got this error message:
32779 : 1 1 ---32776--> 0
32780 : 1 0 ---32777--> -1
Main: Ix{Integer}.index: Index (32766) out of range ((0,32765))
I don't know, whether this is a bug nor where the problem exactly is. My Source-Code is avaialable under [www.romeinf04.de].
Best regards,
Roman
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | Unresolved |
Component | Prelude |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |