@@ -55,8 +55,7 @@ updateController :: IORef (Double, Double) -> IO ()
5555updateController ref = do
5656 e <- pollEvent
5757 case e of
58− MouseMotion x y _ _ -> do
59− writeIORef ref (fromIntegral x, fromIntegral y)
58+ MouseMotion x y _ _ -> writeIORef ref (fromIntegral x, fromIntegral y)
6059 _ -> return ()
6160
6261------------------------------------------------------------------------------
@@ -67,7 +66,7 @@ updateDisplay :: IORef (Double, Double) -> IO ()
6766updateDisplay cref = do
6867 time <- SDL.getTicks
6968 (x, y) <- readIORef cref
70− let t = (fromIntegral time) * speed / 1000
69+ let t = fromIntegral time * speed / 1000
7170 in display (x + cos t * radius, y + sin t * radius)
7271
7372 where