Skip to content

Commit 586b000

Browse files
author
Purlox
committed
Replaced collectEvents that I missed
1 parent 900bc4c commit 586b000

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/OpenGLExample.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ main = do
4242
(prog, attrib) <- initResources
4343

4444
let loop = do
45-
let collectEvents = do
46-
e <- SDL.pollEvent
47-
case e of
48-
Nothing -> return []
49-
Just e' -> (e' :) <$> collectEvents
50-
events <- collectEvents
45+
events <- SDL.pollEvents
5146
let quit = any (== SDL.QuitEvent) $ map SDL.eventPayload events
5247

5348
GL.clear [GL.ColorBuffer]

0 commit comments

Comments
 (0)