• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Network/H26-Nov-2020-5,9913,795

cbits/H26-Nov-2020-316231

examples/H26-Nov-2020-7457

include/H26-Nov-2020-512409

tests/H26-Nov-2020-1,207929

CHANGELOG.mdH A D26-Nov-202011.2 KiB283221

LICENSEH A D26-Nov-20201.6 KiB3024

README.mdH A D26-Nov-20201.9 KiB7447

Setup.hsH A D26-Nov-2020114 74

config.guessH A D26-Nov-202043 KiB1,4671,274

config.subH A D26-Nov-202035.7 KiB1,8371,699

configureH A D26-Nov-2020139.8 KiB4,9314,038

configure.acH A D26-Nov-20202 KiB9680

install-shH A D26-Nov-20208.1 KiB296170

network.cabalH A D03-May-20224.9 KiB174160

README.md

1# [`network`](http://hackage.haskell.org/package/network) [![Build Status](https://travis-ci.org/haskell/network.svg?branch=master)](https://travis-ci.org/haskell/network) [![Build status](https://ci.appveyor.com/api/projects/status/5erq63o4m29bhl57/branch/master?svg=true)](https://ci.appveyor.com/project/eborden/network/branch/master)
2
3To build this package directly from git, you must run `autoreconf -i`.
4And then use `cabal configure; cabal build` or `stack build`.
5
6## Support Policy
7
8### GHC
9
10The `network` package support [3 major versions of GHC](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/intro.html#ghc-version-numbering-policy) only.
11This means that the current stable version and two previous stable versions are supported.
12However, all GHC 8.x are supported currently.
13
14### Windows
15
16We use MSYS to build this package on Windows.
17To use the `network` package on Cygwin, use `stack`.
18
19## Coding
20
21### .hs files
22
23If you need C macros created by "configure" or `CALLCONV`/`SAFE_ON_WIN`, put
24
25```
26#include "HsNetDef.h"
27```
28
29"HsNet.h" does now work well since Mac's cpp sucks.
30
31### .hsc files
32
33If you need `#peek`, `#poke` and others, create a `.hsc` file with
34
35```
36#include "HsNet.h"
37```
38
39`HsNet.h` includes `HsNefDef.h` and necessary C structures.
40Unfortunately, `hsc2hs` does not convert C macros.
41So, if you use `CALLCONV`/`SAFE_ON_WIN`, the following is also necessary:
42
43```
44##include "HsNetDef.h"
45```
46
47## Milestones
48
49### 2.6
50
51- [x] Making `SockAddrCan` deprecated
52
53### 2.7
54
55See https://github.com/haskell/network/issues/296
56
57- [x] Making `Network` deprecated
58- [x] Making `Network.BSD` deprecated
59- [x] Making `MkSocket` deprecated
60- [x] Making many APIs deprecated
61
62### 2.8
63
64- [x] Stop exporting the `PortNum` Constructor in `PortNumber`
65
66### 3.0
67
68- [x] Removing `Network`
69- [x] Removing `Network.BSD`
70- [x] Removing `SockAddrCan`
71- [x] Changing the internal structure of `Socket`.
72- [x] Make address extensible.
73- [x] Remove EOF errors
74