#3053: Modular arithmetic bug?
----------------------+-----------------------------------------------------
Reporter: vlaad | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: critical | Resolution:
Keywords: | Testcase:
Os: Windows | Architecture: x86
----------------------+-----------------------------------------------------
Comment (by claus):
The `x<200` is a *filter*, not a limit. Perhaps you mean
{{{
Prelude> [x|x<-[1..200],x`mod`6==1,x`mod`6==5]
[]
}}}
Otherwise, GHC will happily try and dismiss all those numbers in
`[200..]`, which will keep it busy for a while!-)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3053#comment:1>
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