Skip to content

Commit 4dd1c4a

Browse files
committed
maybe fix test for ghc 7
1 parent c5b2228 commit 4dd1c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Network/Socket/Info.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ sockNameToAddr name = case name of
511511
-- | Shortcut for creating a socket from a socket name.
512512
--
513513
-- >>> import Network.Socket
514-
-- >>> Right sn = readSockName 0 "0.0.0.0:0"
514+
-- >>> let Right sn = readSockName 0 "0.0.0.0:0"
515515
-- >>> (s, a) <- socketFromName sn head Stream defaultProtocol
516516
-- >>> bind s a
517517
socketFromName

0 commit comments

Comments
 (0)