Skip to content

Commit 7a99213

Browse files
committed
removing bangs!
1 parent 4af1a67 commit 7a99213

File tree

10 files changed

+46
-46
lines changed

10 files changed

+46
-46
lines changed

Network/Socket/Options.hsc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ import Network.Socket.ReadShow
5050
-- is supported on your system: see 'isSupportedSocketOption'
5151
data SocketOption = SockOpt
5252
#if __GLASGOW_HASKELL__ >= 806
53-
!CInt -- ^ Option Level
54-
!CInt -- ^ Option Name
53+
CInt -- ^ Option Level
54+
CInt -- ^ Option Name
5555
#else
56-
!CInt -- Option Level
57-
!CInt -- Option Name
56+
CInt -- Option Level
57+
CInt -- Option Name
5858
#endif
5959
deriving (Eq)
6060

Network/Socket/Posix/Cmsg.hsc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ import qualified Text.Read as P
2626

2727
-- | Control message (ancillary data) including a pair of level and type.
2828
data Cmsg = Cmsg {
29-
cmsgId :: !CmsgId
30-
, cmsgData :: !ByteString
29+
cmsgId :: CmsgId
30+
, cmsgData :: ByteString
3131
} deriving (Eq, Show)
3232

3333
----------------------------------------------------------------
3434

3535
-- | Identifier of control message (ancillary data).
3636
data CmsgId = CmsgId {
37-
cmsgLevel :: !CInt
38-
, cmsgType :: !CInt
37+
cmsgLevel :: CInt
38+
, cmsgType :: CInt
3939
} deriving (Eq)
4040

4141
-- | Unsupported identifier

Network/Socket/Posix/CmsgHdr.hsc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ import Network.Socket.Types
2323

2424
data CmsgHdr = CmsgHdr {
2525
#ifdef __linux__
26-
cmsgHdrLen :: !CSize
26+
cmsgHdrLen :: CSize
2727
#else
28-
cmsgHdrLen :: !(#type socklen_t)
28+
cmsgHdrLen :: #type socklen_t
2929
#endif
30-
, cmsgHdrLevel :: !CInt
31-
, cmsgHdrType :: !CInt
30+
, cmsgHdrLevel :: CInt
31+
, cmsgHdrType :: CInt
3232
} deriving (Eq, Show)
3333

3434
instance Storable CmsgHdr where

Network/Socket/Posix/IOVec.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import Network.Socket.Imports
1414
#include <sys/uio.h>
1515

1616
data IOVec = IOVec
17-
{ iovBase :: !(Ptr Word8)
18-
, iovLen :: !CSize
17+
{ iovBase :: Ptr Word8
18+
, iovLen :: CSize
1919
}
2020

2121
instance Storable IOVec where

Network/Socket/Posix/MsgHdr.hsc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ import Network.Socket.Internal (zeroMemory)
1414
import Network.Socket.Posix.IOVec (IOVec)
1515

1616
data MsgHdr sa = MsgHdr
17-
{ msgName :: !(Ptr sa)
18-
, msgNameLen :: !(#type socklen_t)
19-
, msgIov :: !(Ptr IOVec)
17+
{ msgName :: Ptr sa
18+
, msgNameLen :: #type socklen_t
19+
, msgIov :: Ptr IOVec
2020
#ifdef __linux__
21-
, msgIovLen :: !CSize
21+
, msgIovLen :: CSize
2222
#else
23-
, msgIovLen :: !CInt
23+
, msgIovLen :: CInt
2424
#endif
25-
, msgCtrl :: !(Ptr Word8)
25+
, msgCtrl :: Ptr Word8
2626
#ifdef __linux__
27-
, msgCtrlLen :: !CSize
27+
, msgCtrlLen :: CSize
2828
#else
29-
, msgCtrlLen :: !(#type socklen_t)
29+
, msgCtrlLen :: #type socklen_t
3030
#endif
31-
, msgFlags :: !CInt
31+
, msgFlags :: CInt
3232
}
3333

3434
instance Storable (MsgHdr sa) where

Network/Socket/Types.hsc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ import Network.Socket.ReadShow
104104
-----------------------------------------------------------------------------
105105

106106
-- | Basic type for a socket.
107-
data Socket = Socket !(IORef CInt) !CInt {- for Show -}
107+
data Socket = Socket (IORef CInt) CInt {- for Show -}
108108

109109
instance Show Socket where
110110
show (Socket _ ofd) = "<socket: " ++ show ofd ++ ">"
@@ -1052,13 +1052,13 @@ type ScopeID = Word32
10521052
-- 'isSupportedSockAddr'.
10531053
data SockAddr
10541054
= SockAddrInet
1055-
!PortNumber -- sin_port
1056-
!HostAddress -- sin_addr (ditto)
1055+
PortNumber -- sin_port
1056+
HostAddress -- sin_addr (ditto)
10571057
| SockAddrInet6
1058-
!PortNumber -- sin6_port
1059-
!FlowInfo -- sin6_flowinfo (ditto)
1060-
!HostAddress6 -- sin6_addr (ditto)
1061-
!ScopeID -- sin6_scope_id (ditto)
1058+
PortNumber -- sin6_port
1059+
FlowInfo -- sin6_flowinfo (ditto)
1060+
HostAddress6 -- sin6_addr (ditto)
1061+
ScopeID -- sin6_scope_id (ditto)
10621062
-- | The path must have fewer than 104 characters. All of these characters must have code points less than 256.
10631063
| SockAddrUnix
10641064
String -- sun_path

Network/Socket/Win32/Cmsg.hsc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ type ULONG = Word32
2727

2828
-- | Control message (ancillary data) including a pair of level and type.
2929
data Cmsg = Cmsg {
30-
cmsgId :: !CmsgId
31-
, cmsgData :: !ByteString
30+
cmsgId :: CmsgId
31+
, cmsgData :: ByteString
3232
} deriving (Eq, Show)
3333

3434
----------------------------------------------------------------
3535

3636
-- | Identifier of control message (ancillary data).
3737
data CmsgId = CmsgId {
38-
cmsgLevel :: !CInt
39-
, cmsgType :: !CInt
38+
cmsgLevel :: CInt
39+
, cmsgType :: CInt
4040
} deriving (Eq)
4141

4242
-- | Unsupported identifier

Network/Socket/Win32/CmsgHdr.hsc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import Network.Socket.Win32.MsgHdr
1919
import Network.Socket.Types
2020

2121
data CmsgHdr = CmsgHdr {
22-
cmsgHdrLen :: !CUInt
23-
, cmsgHdrLevel :: !CInt
24-
, cmsgHdrType :: !CInt
22+
cmsgHdrLen :: CUInt
23+
, cmsgHdrLevel :: CInt
24+
, cmsgHdrType :: CInt
2525
} deriving (Eq, Show)
2626

2727
instance Storable CmsgHdr where

Network/Socket/Win32/MsgHdr.hsc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ type ULONG = Word32
1818
-- The size of BufferLen is different on pre-vista compilers.
1919
-- But since those platforms are out of support anyway we ignore that.
2020
data MsgHdr sa = MsgHdr
21-
{ msgName :: !(Ptr sa)
22-
, msgNameLen :: !CInt
23-
, msgBuffer :: !(Ptr WSABuf)
24-
, msgBufferLen :: !DWORD
25-
, msgCtrl :: !(Ptr Word8)
26-
, msgCtrlLen :: !ULONG
27-
, msgFlags :: !DWORD
21+
{ msgName :: Ptr sa
22+
, msgNameLen :: CInt
23+
, msgBuffer :: Ptr WSABuf
24+
, msgBufferLen :: DWORD
25+
, msgCtrl :: Ptr Word8
26+
, msgCtrlLen :: ULONG
27+
, msgFlags :: DWORD
2828
} deriving Show
2929

3030
instance Storable (MsgHdr sa) where

Network/Socket/Win32/WSABuf.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import Network.Socket.Imports
1515
type ULONG = Word32
1616

1717
data WSABuf = WSABuf
18-
{ wsaBufPtr :: !(Ptr Word8)
19-
, wsaBufLen :: !ULONG
18+
{ wsaBufPtr :: Ptr Word8
19+
, wsaBufLen :: ULONG
2020
}
2121

2222
instance Storable WSABuf where

0 commit comments

Comments
 (0)