Skip to content

haskell/network

This branch is up to date with master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

74c8e51 · Dec 4, 2024
Oct 21, 2024
Dec 4, 2024
Aug 24, 2022
Aug 31, 2024
May 17, 2023
Aug 31, 2024
Mar 2, 2019
Mar 22, 2024
Nov 26, 2010
Nov 27, 2024
Oct 31, 2010
Mar 26, 2024
Jan 19, 2019
Sep 9, 2004
Jun 7, 2024
Jun 7, 2024
Nov 27, 2024
Aug 28, 2024
May 18, 2006
Nov 27, 2024
Mar 22, 2024

Repository files navigation

GitHub Actions status

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"