Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierSohn committed Nov 25, 2017
1 parent 5427f76 commit 30b0f70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions app/Main.hs
@@ -1,8 +1,5 @@
module Main where

import Prelude( IO
, return )

import Lib( run )

main :: IO ()
Expand Down
2 changes: 1 addition & 1 deletion src/Animation.hs
Expand Up @@ -79,7 +79,7 @@ animate :: (Tree -> Tree)
-> Tree
-> Animation
-> IO (Maybe Animation)
animate pureAnim ioAnim state a@(Animation _) = do
animate pureAnim ioAnim state (Animation _) = do
let newState = pureAnim state
putStrLn "animation is rendered"
return $ Just (Animation $ ioAnim newState) -- When returning Nothing here the problem disappears

0 comments on commit 30b0f70

Please sign in to comment.