The pipes-network package

Control.Proxy.TCP exports pipes proxies and functions to deal with TCP
connections. Such proxies don't acquire nor release new resources within a
proxy pipeline.

Control.Proxy.TCP.Safe exports pipes-safe proxies and functions to deal
with TCP connections. Such proxies may safely acquire and release resources
within a pipeline, using the facilities provided by the pipes-safe package.