Skip to content

Commit

Permalink
Fix 9.2 warnings (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwiz authored Mar 18, 2022
1 parent 9d4adaa commit 1578a63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/twinklebear/Lesson05.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ main = do
renderer <- SDL.createRenderer window (-1) SDL.defaultRenderer

spriteSheet <- getDataFileName "examples/twinklebear/spritesheet.bmp" >>= loadTexture renderer
let [spriteOne, spriteTwo, spriteThree, spriteFour] =
[ SDL.Rectangle (P (V2 (x * spriteWidth) (y * spriteHeight))) (V2 spriteWidth spriteHeight)
| x <- [0..1], y <- [0..1] ]

let mkSprite x y = SDL.Rectangle (P (V2 (x * spriteWidth) (y * spriteHeight))) (V2 spriteWidth spriteHeight)
spriteOne = mkSprite 0 0
spriteTwo = mkSprite 0 1
spriteThree = mkSprite 1 0
spriteFour = mkSprite 1 1

let loop spriteRect = do
events <- SDL.pollEvents
Expand Down
1 change: 1 addition & 0 deletions src/SDL/Input/Keyboard/Codes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE PatternSynonyms #-}

{-# OPTIONS_GHC -fno-warn-missing-pattern-synonym-signatures #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}

{-|
Expand Down
1 change: 1 addition & 0 deletions src/SDL/Raw/Enum.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE PatternSynonyms #-}

{-# OPTIONS_GHC -fno-warn-missing-pattern-synonym-signatures #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}

module SDL.Raw.Enum (
-- * Enumerations
Expand Down

0 comments on commit 1578a63

Please sign in to comment.