We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cd920d commit 1cd8155Copy full SHA for 1cd8155
src/UI/Window.hs
@@ -52,7 +52,7 @@ poll :: Has (Lift IO) sig m => m (Maybe Event)
52
poll = sendIO pollEvent
53
54
input :: Has (Lift IO) sig m => (Event -> m ()) -> m ()
55
-input h = go where
+input h = sendIO pumpEvents >> go where
56
go = poll >>= maybe (pure ()) (const go <=< h)
57
58
size :: (Num a, Has (Lift IO) sig m, Has (Reader Window) sig m) => m (V2 (Coords a))
0 commit comments