Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haskell/network
Low-level networking interface
https://github.com/haskell/network
haskell network socket
Last synced: 6 days ago
JSON representation
Low-level networking interface
- Host: GitHub
- URL: https://github.com/haskell/network
- Owner: haskell
- License: other
- Created: 2010-10-27T21:37:32.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T10:53:20.000Z (21 days ago)
- Last Synced: 2024-12-11T22:02:42.601Z (13 days ago)
- Topics: haskell, network, socket
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/network
- Size: 1.93 MB
- Stars: 329
- Watchers: 31
- Forks: 189
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![GitHub Actions status](https://github.com/haskell/network/workflows/Haskell%20CI/badge.svg)
# [`network`](http://hackage.haskell.org/package/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](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/intro.html#ghc-version-numbering-policy) 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"
```