File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 55
55
-- > open addr = do
56
56
-- > sock <- socket (addrFamily addr) (addrSocketType addr) (addrProtocol addr)
57
57
-- > setSocketOption sock ReuseAddr 1
58
- -- > withFdSocket sock $ setCloseOnExecIfNeeded
58
+ -- > withFdSocket sock setCloseOnExecIfNeeded
59
59
-- > bind sock $ addrAddress addr
60
60
-- > listen sock 1024
61
61
-- > return sock
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ runTCPServer mhost port server = withSocketsDo $ do
32
32
open addr = do
33
33
sock <- socket (addrFamily addr) (addrSocketType addr) (addrProtocol addr)
34
34
setSocketOption sock ReuseAddr 1
35
- withFdSocket sock $ setCloseOnExecIfNeeded
35
+ withFdSocket sock setCloseOnExecIfNeeded
36
36
bind sock $ addrAddress addr
37
37
listen sock 1024
38
38
return sock
You can’t perform that action at this time.
0 commit comments