|
RE: Small bug in Data.PackedString.splitWithPS: msg#00016lang.haskell.glasgow.bugs
> In GHC 5.04.2 this fails: wordsPS (packString "a") > > Cause: typical off-by-one error in libraries/base/Data/PackedString.hs > line 289 > > first_pos_that_satisfies pred ps len n = > case [ m | m <- [n..len], pred (ps ! m) ] of > ^ > here > > Probably should be: > case [ m | m <- [n..len-1], pred (ps ! m) ] of Thanks; fixed. Cheers, Simon
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Small bug in Data.PackedString.splitWithPS, Tomasz Zielonka |
|---|---|
| Next by Date: | RE: Problem with derived instances., Simon Peyton-Jones |
| Previous by Thread: | Small bug in Data.PackedString.splitWithPS, Tomasz Zielonka |
| Next by Thread: | Bug in codeGen/CgRetConv.lhs, Tomasz Zielonka |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |