#1493: Int with Prelude-functions works, but Integer with generic-list-functions
doesn't
------------------------------+---------------------------------------------
  Reporter:  guest            |          Owner:                
      Type:  support request  |         Status:  new           
  Priority:  low              |      Milestone:                
 Component:  Prelude          |        Version:  6.6.1         
  Severity:  normal           |       Keywords:                
Difficulty:  Unknown          |             Os:  Windows       
  Testcase:                   |   Architecture:  x86_64 (amd64)
------------------------------+---------------------------------------------
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

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1493>
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

Reply via email to