RE: strange Prelude.chr bug

2000-06-13 Thread Malcolm Wallace
Fail: Prelude.chr: bad argument nofib/real/compress2 fails with the same message, for us. We haven't investigated. Perhaps it's the same bug. With a quick grep through the two programs, my guess is that 'toEnum' is being specialised at type Char to an internal function 'chr', and that

RE: strange Prelude.chr bug

2000-06-13 Thread Simon Marlow
Fail: Prelude.chr: bad argument nofib/real/compress2 fails with the same message, for us. We haven't investigated. Perhaps it's the same bug. With a quick grep through the two programs, my guess is that 'toEnum' is being specialised at type Char to an internal function 'chr', and

Re: strange Prelude.chr bug

2000-06-13 Thread Lennart Augustsson
Simon Marlow wrote: With a quick grep through the two programs, my guess is that 'toEnum' is being specialised at type Char to an internal function 'chr', and that the implementation of 'chr' only converts Ints up to some limit like 128. (Both programs apply toEnum to Ints in the range