Skip to content

Commit 9c6ad1a

Browse files
committed
try to make the linter happy?
1 parent 53d0ddf commit 9c6ad1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/PipeNonBlockIO.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module PipeNonBlockIO where
22

3+
import Control.Monad (void)
34
import Control.Concurrent
45
import Control.Concurrent.MVar
56
import Data.Word
@@ -18,7 +19,7 @@ foreign import capi "fcntl.h value F_SETFL" fSETFL :: CInt
1819
foreign import capi "fcntl.h value O_NONBLOCK" oNONBLOCK :: CInt
1920

2021
setNonBlocking :: CInt -> IO ()
21-
setNonBlocking fd = c_fcntl_setfl fd fSETFL oNONBLOCK >> return ()
22+
setNonBlocking fd = void (c_fcntl_setfl fd fSETFL oNONBLOCK)
2223

2324
blockOnRead :: CInt -> IO Word8
2425
blockOnRead fd = alloca $ \p -> go p

0 commit comments

Comments
 (0)