> > 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 the implementation of 'chr' only converts Ints up to some limit like 128. (Both programs apply toEnum to Ints in the range 128<c<256.) If this is the case, it should be easy to fix. Regards, Malcolm
- strange Prelude.chr bug Malcolm Wallace
- RE: strange Prelude.chr bug Julian Seward (Intl Vendor)
- RE: strange Prelude.chr bug Malcolm Wallace
- RE: strange Prelude.chr bug Simon Marlow
- Re: strange Prelude.chr bug Lennart Augustsson
- Re: strange Prelude.chr bug Marcin 'Qrczak' Kowalczyk
- Re: strange Prelude.chr bug Lennart Augustsson
- RE: strange Prelude.chr bug Simon Marlow