[network] getAddrInfo: invalid haddock (+ patch)

Valery V. Vorotyntsev valery.vv at gmail.com
Mon Nov 30 08:32:56 EST 2009


Example in the haddock documentation for `getAddrInfo' function is
rendered incorrectly:

    http://is.gd/57LgX

-----BEGIN PATCH-----
--- Network/Socket.hsc.orig	2009-11-30 15:08:57.869477201 +0200
+++ Network/Socket.hsc	2009-11-30 15:08:28.328452505 +0200
@@ -1972,9 +1972,10 @@
 -- to make partial application easier.
 --
 -- Example:
+--
 -- @
 --   let hints = defaultHints { addrFlags = [AI_ADDRCONFIG, AI_CANONNAME] }
---   addrs <- getAddrInfo (Just hints) (Just "www.haskell.org") (Just "http")
+--   addrs <- getAddrInfo (Just hints) (Just \"www.haskell.org\")
(Just \"http\")
 --   let addr = head addrs
 --   sock <- socket (addrFamily addr) (addrSocketType addr) (addrProtocol addr)
 --   connect sock (addrAddress addr)
-----END PATCH-----

-- 
vvv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getAddrInfo-haddock.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/libraries/attachments/20091130/7bfd6676/getAddrInfo-haddock.bin


More information about the Libraries mailing list