Skip to content

Commit 65b9b0b

Browse files
committed
Use return instead of pure
1 parent f29aa06 commit 65b9b0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Network/Socket/Info.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ showSockEndpoint n = case n of
519519
-- resolution fails.
520520
resolveEndpoint :: SockEndpoint -> IO [SockAddr]
521521
resolveEndpoint name = case name of
522-
EndpointByAddr a -> pure [a]
522+
EndpointByAddr a -> return [a]
523523
EndpointByName host port -> fmap addrAddress <$> getAddrInfo hints (Just host) (Just (show port))
524524
where
525525
hints = Just $ defaultHints { addrSocketType = Stream }
@@ -540,4 +540,4 @@ socketFromEndpoint
540540
socketFromEndpoint end select stype protocol = do
541541
a <- select <$> resolveEndpoint end
542542
s <- socket (sockAddrFamily a) stype protocol
543-
pure (s, a)
543+
return (s, a)

0 commit comments

Comments
 (0)