Skip to content

Commit

Permalink
Fixed bug in System.Event.Array.mapM_
Browse files Browse the repository at this point in the history
The loop didn't recurse causing only the first element to get mapped
over.
  • Loading branch information
tibbe committed Aug 9, 2009
1 parent 68226cc commit 665214b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/System/Event/Array.hs
Expand Up @@ -94,4 +94,5 @@ mapM_ (Array ref) f =
| otherwise = do
e <- peek (ptr `plusPtr` n)
f e
loop (n + 1)
loop 0

0 comments on commit 665214b

Please sign in to comment.