|
Enum Int problem: msg#00023lang.haskell.glasgow.bugs
Using GHC 6.2.1 interpreter, the fragment [minBound :: Int, 0 ..] returns [-2147483648]. Using Hugs, the returned value is the infinite list [-2147483648, 0, -2147483648, 0, ...]. However, I would expect to get [-2147483648, 0]. Similar problems occur with the other arithmetic sequence functions for Int when the increment is greater than what is representable in the type. Bo
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Bug in GHC when compiling with -O ?, MR K P SCHUPKE |
|---|---|
| Next by Date: | Re: Enum Int problem, Alastair Reid |
| Previous by Thread: | Bug in GHC when compiling with -O ?, Klaus Lüttich |
| Next by Thread: | Re: Enum Int problem, Alastair Reid |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |