Skip to content

Commit 9d29533

Browse files
committed
fixing strict
1 parent c3fbba7 commit 9d29533

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Network/Socket/Options.hsc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,16 +488,16 @@ newtype SocketTimeout = SocketTimeout Word32 deriving (Eq, Ord, Show)
488488

489489
#if defined(mingw32_HOST_OS)
490490
instance Storable SocketTimeout where
491-
sizeOf (SocketTimeout to) = sizeOf to -- DWORD as milliseconds
492-
alignment _ = 0
491+
sizeOf ~(SocketTimeout to) = sizeOf to -- DWORD as milliseconds
492+
alignment ~_ = 0
493493
peek ptr = do
494494
to <- peek (castPtr ptr)
495495
return $ SocketTimeout (to * 1000)
496496
poke ptr (SocketTimeout to) = poke (castPtr ptr) (to `div` 1000)
497497
#else
498498
instance Storable SocketTimeout where
499-
sizeOf _ = (#size struct timeval)
500-
alignment _ = (#const offsetof(struct {char x__; struct timeval (y__); }, y__))
499+
sizeOf ~_ = (#size struct timeval)
500+
alignment ~_ = (#const offsetof(struct {char x__; struct timeval (y__); }, y__))
501501
peek ptr = do
502502
sec <- (#peek struct timeval, tv_sec) ptr
503503
usec <- (#peek struct timeval, tv_usec) ptr

0 commit comments

Comments
 (0)