Modular arithmetic bug?
GHC dies here (please note the x < 200 limit):
take 15 [x | x <- [1..], x < 200, x mod 6 == 1, x mod 6 == 5]
And here (nothing with infix notation): take 15 [x | x <- [1..], x < 200, mod x 6 == 1, mod x 6 == 5]
But *not* here: take 15 [x | x <- [1..], mod x 6 == 1, x < 200, x > 100]
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.10.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |