There's a mention of detectPort, which is not in the library. Could instead say to use isAvailable to probe for the control ports.
Under "Connect through Tor with explicit port" there's a broken hyperlink on SocksAddress,
In the "Connect through Tor using control port" example, withSession is called without the control port, so I think that example won't work as written. There are some other examples of withSession that have the same problem.
Looking at the haddock for Network.Anonymous.Tor: