#3053: Modular arithmetic bug?
----------------------+-----------------------------------------------------
Reporter: vlaad | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: GHCi | Version: 6.10.1
Severity: critical | Resolution: invalid
Keywords: | Testcase:
Os: Windows | Architecture: x86
----------------------+-----------------------------------------------------
Comment (by vlaad):
Well, if this is *not* a bug, then please explain how in your first
response we are getting an empty list? (or better, stop thinking, and pass
it to the guys, please).
("Perhaps you mean [x|x<-[1..200],x`mod`6==1,x`mod`6==5]")
{{{
Prelude> [x|x<-[1..20],x`mod`6==5]
[5,11,17]
Prelude> [x|x<-[1..20],x`mod`6==1]
[1,7,13,19]
Prelude> [x|x<-[1..20],x`mod`6==1,x`mod`6==5]
[]
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3053#comment:6>
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