@hackage network3.1.0.0
Low-level networking interface
Categories
License
BSD-3-Clause
Maintainer
Kazu Yamamoto, Evan Borden
Links
Versions
Installation
Tested Compilers
Dependencies (3)
- base >=4.7 && <4.17
- bytestring >=0.10 && <0.11
- deepseq Show all…
Dependents (1369)
@hackage/arbor-datadog, @hackage/open-pandoc, @hackage/refh, @cardano/ouroboros-network, @hackage/systemd, @hackage/pomohoro, Show all…
network

To build this package directly from git, you must run autoreconf -i.
And then use cabal configure; cabal build or stack build.
Support Policy
GHC
The network package support 3 major versions of GHC only.
This means that the current stable version and two previous stable versions are supported.
Windows
We use MSYS to build this package on Windows.
To use the network package on Cygwin, use stack.
Coding
.hs files
If you need C macros created by "configure" or CALLCONV/SAFE_ON_WIN, put
#include "HsNetDef.h"
"HsNet.h" does now work well since Mac's cpp sucks.
.hsc files
If you need #peek, #poke and others, create a .hsc file with
#include "HsNet.h"
HsNet.h includes HsNefDef.h and necessary C structures.
Unfortunately, hsc2hs does not convert C macros.
So, if you use CALLCONV/SAFE_ON_WIN, the following is also necessary:
##include "HsNetDef.h"
Milestones
2.6
- Making
SockAddrCandeprecated
2.7
See https://github.com/haskell/network/issues/296
- Making
Networkdeprecated - Making
Network.BSDdeprecated - Making
MkSocketdeprecated - Making many APIs deprecated
2.8
- Stop exporting the
PortNumConstructor inPortNumber
3.0
- Removing
Network - Removing
Network.BSD - Removing
SockAddrCan - Changing the internal structure of
Socket. - Make address extensible.
- Remove EOF errors