Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsutoshi Aoe committed Jan 4, 2014
1 parent 19cf71a commit 5511c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/RegressionTests.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
import Control.Monad (when)
import Control.Monad (when, void)
import Data.Function (fix)
import Data.IORef
import Foreign.C.Types (CUInt(..))
Expand All @@ -24,7 +24,7 @@ case_issue1 = do
zombie ref = fix $ \loop -> do
n <- readIORef ref
when (n > 0) $ do
c_sleep 1
void $ c_sleep 1
writeIORef ref $! n - 1
loop

Expand Down

0 comments on commit 5511c27

Please sign in to comment.