We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f29aa06 commit 65b9b0bCopy full SHA for 65b9b0b
Network/Socket/Info.hsc
@@ -519,7 +519,7 @@ showSockEndpoint n = case n of
519
-- resolution fails.
520
resolveEndpoint :: SockEndpoint -> IO [SockAddr]
521
resolveEndpoint name = case name of
522
- EndpointByAddr a -> pure [a]
+ EndpointByAddr a -> return [a]
523
EndpointByName host port -> fmap addrAddress <$> getAddrInfo hints (Just host) (Just (show port))
524
where
525
hints = Just $ defaultHints { addrSocketType = Stream }
@@ -540,4 +540,4 @@ socketFromEndpoint
540
socketFromEndpoint end select stype protocol = do
541
a <- select <$> resolveEndpoint end
542
s <- socket (sockAddrFamily a) stype protocol
543
- pure (s, a)
+ return (s, a)
0 commit comments