Skip to content

Commit 7ff9f9f

Browse files
committed
making fields strict.
1 parent f8305c4 commit 7ff9f9f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Network/Socket/Options.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ import Network.Socket.Types
3838
-- The existence of a constructor does not imply that the relevant option
3939
-- is supported on your system: see 'isSupportedSocketOption'
4040
data SocketOption = SockOpt {
41-
sockOptLevel :: CInt
42-
, sockOptName :: CInt
41+
sockOptLevel :: !CInt
42+
, sockOptName :: !CInt
4343
} deriving (Eq, Show)
4444

4545
-- | Does the 'SocketOption' exist on this system?

Network/Socket/Posix/Cmsg.hsc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ import Network.Socket.Types
2020

2121
-- | Control message (ancillary data) including a pair of level and type.
2222
data Cmsg = Cmsg {
23-
cmsgId :: CmsgId
24-
, cmsgData :: ByteString
23+
cmsgId :: !CmsgId
24+
, cmsgData :: !ByteString
2525
} deriving (Eq, Show)
2626

2727
----------------------------------------------------------------
2828

2929
-- | Identifier of control message (ancillary data).
3030
data CmsgId = CmsgId {
31-
cmsgLevel :: CInt
32-
, cmsglType :: CInt
31+
cmsgLevel :: !CInt
32+
, cmsglType :: !CInt
3333
} deriving (Eq, Show)
3434

3535
-- | The identifier for 'IPv4TTL'.

0 commit comments

Comments
 (0)