Skip to content

Commit d9c9bbc

Browse files
committed
hlint suggestions.
1 parent bc45bb5 commit d9c9bbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Network/Socket.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
-- > open addr = do
5656
-- > sock <- socket (addrFamily addr) (addrSocketType addr) (addrProtocol addr)
5757
-- > setSocketOption sock ReuseAddr 1
58-
-- > withFdSocket sock $ setCloseOnExecIfNeeded
58+
-- > withFdSocket sock setCloseOnExecIfNeeded
5959
-- > bind sock $ addrAddress addr
6060
-- > listen sock 1024
6161
-- > return sock

examples/EchoServer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runTCPServer mhost port server = withSocketsDo $ do
3232
open addr = do
3333
sock <- socket (addrFamily addr) (addrSocketType addr) (addrProtocol addr)
3434
setSocketOption sock ReuseAddr 1
35-
withFdSocket sock $ setCloseOnExecIfNeeded
35+
withFdSocket sock setCloseOnExecIfNeeded
3636
bind sock $ addrAddress addr
3737
listen sock 1024
3838
return sock

0 commit comments

Comments
 (0)