BSD3 licensed
Maintained by Kazu Yamamoto, Evan Borden

network Build Status Build status

To build this package using Cabal directly from git, you must run autoreconf before the usual Cabal build steps (configure/build/install). autoreconf is included in the GNU Autoconf tools. There is no need to run the configure script: the setup configure step will do this for you.

Support Policy


network's GHC policy supports 3 stable versions. The current stable version and two previous stable versions are supported.

Hugs, JHC, UHC

network does not officially support these compilers.



  • Zero memory of sockaddr_un if abstract socket #220

  • Improving error messages #232

  • Allow non-blocking file descriptors via setNonBlockIfNeeded #242

  • Update config.{guess,sub} to latest version #244

  • Rename my_inet_ntoa to avoid symbol conflicts #228

  • Test infrastructure improvements #219 #217 #218

  • House keeping and cleanup #238 #237


  • Reverse breaking exception change in Network.Socket.ByteString.recv #215


  • New maintainers: Evan Borden (@eborden) and Kazu Yamamoto (@kazu-yamamoto). The maintainer for a long period, Johan Tibell (@tibbe) stepped down. Thank you, Johan, for your hard work for a long time.

  • New APIs: ntohl, htonl,hostAddressToTuple{,6} and tupleToHostAddress{,6}. #210

  • Added a Read instance for PortNumber. #145

  • We only set the IPV6_V6ONLY flag to 0 for stream and datagram socket types, as opposed to all of them. This makes it possible to use ICMPv6. #180 #181

  • Work around GHC bug #12020. Socket errors no longer cause segfaults or hangs on Windows. #192

  • Various documentation improvements and the deprecated pragmas. #186 #201 #205 #206 #211

  • Various internal improvements. #193 #200


  • Regenerate configure and

  • Better detection of CAN sockets.


  • Add support for TCPUSERTIMEOUT.

  • Don't conditionally export the SockAddr constructors.

  • Add isSupportSockAddr to allow checking for supported address types at runtime.

Depends on:
Used by 845 packages:
AGI, AMI, AndroidViewHierarchyImporter, ApplePush, Barracuda, BlastHTTP, BufferedSocket, CMQ, Chitra, Combinatorrent, CoreFoundation, CouchDB, CurryDB, DAV, DPM, DSTM, Deadpan-DDP, DefendTheKing, Dust, Dust-crypto, Dust-tools, Dust-tools-pcap, EntrezHTTP, EsounD, EtaMOO, Etherbunny, EventSocket, FTPLine, Finance-Quote-Yahoo, Finance-Treasury, GoogleSB, GrowlNotify, HAppS-Server, HAppS-State, HTTP, HTTP-Simple, HXMPP, Hach, HandlerSocketClient, HandsomeSoup, HaskellNet, HaskellNet-SSL, HaskellTorrent, Hawk, Hayoo, Hermes, Hmpf, Holumbus-Distribution, Holumbus-MapReduce, Holumbus-Searchengine, Holumbus-Storage, HsHyperEstraier, HsOpenSSL, IPv6Addr, Irc, JunkDB, Ketchup, KiCS, Lambdaya, LinkChecker, LogicGrowsOnTrees-network, LslPlus, Lucu, MagicHaskeller, MissingH, NGrams, Neks, Network-NineP, Ninjas, Nomyx, Nomyx-Core, PTQ, PUH-Project, PageIO, Parry, PastePipe, Phsu, PortFusion, Pugs, Pup-Events-Client, Pup-Events-Server, RNAlien, RandomDotOrg, Ranka, Redmine, ReviewBoard, SMTPClient, Saturnin, Scurry, Semantique, SimpleH, Stomp, Thrift, TinyURL, Webrexp, XMPP, XSaiga, Yablog, Yogurt, Yogurt-Standalone, ZFS, accentuateus, acid-state, acid-state-tls, acme-http, adb, adblock2privoxy, adhoc-network, agentx, airbrake, airship, ajhc, alms, amqp, anticiv, apelsin, archive, archiver, atlassian-connect-core, atlassian-connect-descriptor, atom-basic, authinfo-hs, avers, aws, azure-acs, azure-servicebus, azurify, bamboo, bamboo-theme-blueprint, bamboo-theme-mini-html5, basex-client, bdo, bein, bert, bitcoin-hs, bitcoin-rpc, bittorrent, bitx-bitcoin, black-jewel, blaze-html-contrib, blubber, blubber-server, bolt, borel, bson, buster-network, c10k, cabal-dev, cabal-install, cabal-install-ghc72, cabal-install-ghc74, cabal-src, cabal-upload, carte, cash, cassandra-cql, cassy, cgi, chevalier-common, citeproc-hs, clafer, claferwiki, clckwrks, clckwrks-cli, clckwrks-dot-com, clckwrks-plugin-bugs, clckwrks-plugin-ircbot, cloudi, codepad, codex, coinbase-exchange, colchis, commsec, commsec-keyexchange, compact-socket, concraft-hr, concraft-pl, concurrent-dns-cache, conduit-extra, conjure, connection, connection-pool, consul-haskell, courier, cql, cql-io, criu-rpc, d-bus, daemons, danibot, darcs, darcs-benchmark, darcs-beta, darcs-buildpackage, darcswatch, darkplaces-rcon, datadog, dbus, dbus-core, debian, debug-me, dfsbuild, dgs, direct-fastcgi, direct-http, discogs-haskell, distributed-process-p2p, distributed-process-simplelocalnet, distributed-process-systest, distributed-process-tests, distributed-process-zookeeper, dns, dnsrbl, doc-review, docker, domain-auth, dropbox-sdk, dtd, eager-sockets, ekg, ekg-bosun, ekg-carbon, ekg-statsd, ekg-wai, elm-get, elm-package, email-postmark, env-parser, erlang, esotericbot, ethereum-client-haskell, eventloop, extemp, ffeed, fixhs, flickr, flowdock, fluent-logger, formal, forml, fpco-api, free-theorems-seq-webui, freesound, ftp-client, ftp-conduit, ftphs, full-sessions, futun, generic-server, geocode-google, gf, ginsu, git-annex, git-repair, github-backup, gitignore, gitit, glirc, gopher-proxy, gopherbot, gore-and-ash-demo, gore-and-ash-network, gpah, graceful, graylog, greg-client, hGelf, hOpenPGP, hPushover, hS3, hSimpleDB, hack-contrib, hack-frontend-happstack, hack-handler-epoll, hack-handler-evhttp, hack-handler-happstack, hack-handler-hyena, hack-handler-kibro, hack-handler-simpleserver, hack2-contrib-extra, hack2-handler-happstack-server, hack2-handler-mongrel2-http, hack2-handler-snap-server, hack2-interface-wai, hackage-repo-tool, hackage-security, hackage-security-HTTP, hackage-server, hackport, hadoop-rpc, hails, hakismet, hakyll, handa-gdata, happs-hsp-template, happstack-contrib, happstack-facebook, happstack-helpers, happstack-server, happstack-server-tls, happstack-server-tls-cryptonite, happstack-util, happybara-webkit, harchive, hasbolt, hascas, hascat, hascat-lib, hascat-system, hask-home, haskeem, haskell-awk, haskell-ftp, haskell-openflow, haskell-platform-test, haskell-tools-daemon, haskell-tor, haskell-tyrant, haskell-xmpp, haskheap, haskoin-core, haskoin-node, haskoon, haskoon-httpspec, haskoon-salvia, hasparql-client, haste-compiler, hats, hawitter, haxr, hbeanstalk, hcoap, hdevtools, hdigest, hdocs, hdph, hedis, helium, hellage, hellnet, help-esb, henet, hfd, hg-buildpackage, hgearman, hgopher, hi3status, hichi, himg, himpy, hinterface, hircules, hlibev, hmarkup, hog, hoogle, hookup, hoovie, hosc, hosts-server, hp2any-core, hp2any-graph, hpaste, hpasteit, hpc-tracer, hpodder, hriemann, hs-json-rpc, hs-server-starter, hs-twitter, hs-twitterarchiver, hs-watchman, hsbencher-codespeed, hsbencher-fusion, hsc3, hscassandra, hsdev, hsdns, hsdns-cache, hsfcsh, hslogger, hslogstash, hsmtpclient, hsns, hsnsq, hsntp, hsoz, hsp-cgi, hsparql, hspread, hsrelp, hstatsd, hstorchat, hstox, hsyslog-udp, htsn, http-client, http-client-lens, http-client-openssl, http-client-request-modifiers, http-client-tls, http-common, http-conduit-downloader, http-enumerator, http-listen, http-monad, http-pony, http-proxy, http-reverse-proxy, http-server, http-shed, http-streams, httpd-shed, https-everywhere-rules, httpspec, hulk, hums, hutton, hws, hxmppc, hxt-filter, hxt-http, hydrogen-prelude, hyena, hyperdrive, iCalendar, ib-api, ide-backend, ide-backend-common, ide-backend-server, idris, ihttp, imagepaste, imap, imapget, imm, influxdb, instapaper-sender, io-streams, io-streams-haproxy, ioctl, ip-quoter, ipc, iproute, iptadmin, irc-dcc, ircbot, ismtp, iterIO, iterio-server, jdi, jespresso, jobqueue, jonathanscard, juandelacosa, kademlia, kafka-client, kansas-lava-cores, kansas-lava-papilio, keera-hails-mvc-solutions-gtk, keera-hails-reactive-network, keera-posture, keiretsu, keter, kevin, keysafe, krpc, lambdaLit, lambdabot-core, lambdabot-haskell-plugins, lambdabot-irc-plugins, lambdabot-misc-plugins, lambdabot-reference-plugins, lambdabot-utils, lambdacat, lambdacube-gl, latest-npm-version, ldap-client, legion, legion-extra, leksah, leksah-server, libjenkins, liblawless, libmpd, libssh2, libsystemd-daemon, lightning-haskell, linx-gateway, live-sequencer, llsd, local-address, log-warper, logentries, loshadka, lucienne, mDNSResponder-client, mac, macbeth-lib, magicbane, mahoro, mailgun, manatee-anything, manatee-core, manatee-curl, manatee-ircclient, marmalade-upload, mathblog, matsuri, mcpi, mediabus, mediabus-rtp, mediawiki, mediawiki2latex, mellon-web, memcache, memcache-conduit, memcache-haskell, memcached, memcached-binary, messente, metricsd-client, microformats2-parser, mighttpd, mighttpd2, milena, mime-string, miniplex, moesocks, mohws, monarch, mongoDB, mongodb-queue, monky, mp, mpdmate, mqtt-hs, msgpack-rpc, mtgoxapi, mushu, musicbrainz-email, mvclient, mysql-haskell, mysql-haskell-openssl, mywatch, nats-queue, nerf, net-concurrent, netclock, netcore, netspec, nettle-frp, nettle-openflow, network-anonymous-i2p, network-anonymous-tor, network-attoparsec, network-bitcoin, network-bytestring, network-carbon, network-conduit-tls, network-connection, network-dbus, network-enumerator, network-interfacerequest, network-metrics, network-minihttp, network-msg, network-msgpack-rpc, network-multicast, network-netpacket, network-protocol-xmpp, network-rpca, network-server, network-service, network-simple, network-simple-sockaddr, network-simple-tls, network-socket-options, network-stream, network-transport-tcp, network-uri-flag, network-websocket, networked-game, nikepub, nntp, noise, nomyx-core, nomyx-server, notmuch-web, ntp-control, nvim-hs, oauthenticated, oeis, oidc-client, on-demand-ssh-tunnel, open-pandoc, openexchangerates, openflow, openid, openssl-streams, orchid-demo, osc, panda, pandoc, paranoia, parconc-examples, pastis, patat, pb, pcap, persistent-mongoDB, persistent-mysql-haskell, pgsql-simple, phizzle, phone-push, pi-calculus, pianola, pinboard, pipes-network, pipes-network-tls, pipes-p2p, pipes-p2p-examples, pocket-dns, polyseq, pomodoro, pomohoro, pong-server, pontarius-xmpp, pop3-client, postgresql-typed, postie, postmaster, preamble, prefork, primula-bot, proc-net, propellor, psc-ide, pubsub, pugs-compat, purescript, push-notify, push-notify-ccs, pusher-ws, pvd, quenya-verb, quoridor-hs, raketka, raven-haskell, rclient, rdf4h, recaptcha, redHandlers, reddit, redis, redis-hs, redis-io, refh, remote, remote-debugger, remotion, replicant, reqcatcher, reserve, resolve, restricted-workers, rethinkdb, rethinkdb-client-driver, rethinkdb-wereHamster, riak, riemann, rlglue, rollbar, roshask, route-generator, rpc-framework, rss, rss2irc, rtorrent-rpc, salvia, salvia-demo, salvia-extras, sarsi, sbp2udp, scalable-server, scgi, scholdoc, scion, scotty, scrobble, scrz, seacat, second-transfer, secure-sockets, secureUDP, selenium, selenium-server, sendfile, sensei, sensu-run, servant-multipart, servant-server, sessions, shadowsocks, shuffle, simple-bluetooth, simple-sendfile, simple-server, simpleirc, simplesmtpclient, slack-api, slack-notify-haskell, smtp-mail, smtp-mail-ng, smtp2mta, smtps-gmail, snap-core, snap-cors, snap-server, snaplet-amqp, snaplet-influxdb, snaplet-mandrill, snaplet-redis, snaplet-tasks, snmp, sock2stream, sockaddr, socket-activation, socketson, socks, space, sphinx, splice, sproxy, sproxy-web, sproxy2, srcinst, ssh, statsd, statsd-client, statsd-datadog, store, stratum-tool, stratux-websockets, streaming-commons, streaming-utils, stunclient, swagger2, sws, systemd, tablestorage, taffybar, tak, tcache-AWS, tcp-streams, tcp-streams-openssl, teleshell, tellbot, templatepg, test-sandbox, test-sandbox-compose, tftp, theoremquest-client, thrift, tianbar, time-warp, tls, tls-debug, tls-extra, tmp-postgres, tpar, transient-universe, transient-universe-tls, translate, tremulous-query, twentefp-eventloop-graphics, twentefp-websockets, twhs, twidge, uacpid, udbus, udp-conduit, uhc-light, uhttpc, uni-util, uniform-io, ureader, uri-conduit, uri-enumerator, uri-enumerator-file, urlcheck, urldecode, urlencoded, vacuum-opengl, vivid, wai, wai-app-file-cgi, wai-cli, wai-devel, wai-extra, wai-handler-devel, wai-lens, wai-logger, wai-middleware-consul, wai-middleware-rollbar, wai-middleware-throttle, wai-websockets, waldo, warp, warp-tls, warp-tls-uid, weather-api, webapp, webdriver, webdriver-snoy, webserver, websockets, whois, wikipedia4epub, windowslive, winio, witty, wobsurv, wol, wp-archivebot, wrecker, ws-chans, wuss, xcp, xdcc, xenstore, xhb, xkcd, xmonad-extras, y0l0bot, yahoo-web-search, yaml2owl, yeller, yesod-bin, yesod-recaptcha, yesod-s3, yesod-session-redis, yesod-test, yuuko, zre
comments powered byDisqus