BSD-3-Clause licensed
Maintained by Kazu Yamamoto, Herbert Valerio Riedel

Module documentation for 2.8.1.0

This version can be pinned in stack with:network-bsd-2.8.1.0@sha256:d92423549794926f8bac0b63d5963c898a2ab628a4bb2e10ec5ce05b579383c1,3742

This package provides Haskell bindings to the the POSIX network database (<netdb.h>) API.

Relationship to the network package

The network package version 2.* series provides Network.BSD but it is removed starting with network version 3.0.

This package provides the Network.BSD module split off from the network package.

If in addition to the network's modules also Network.BSD is necessary, add network-bsd to your dependencies like so:

library
    build-depends: network     >= 2.7 && < 3.1
                 , network-bsd >= 2.7 && < 2.9

I.e. you can control the version of the network package independently.

NOTE: Starting with network-bsd-2.8.1.0 the APIs of network and network-bsd evolve differently, and consequently the versioning doesn't match up anymore! Moreover, also starting with version network-bsd-2.8.1.0 this package requires network >= 3 in order to avoid module name clashes with network < 3's Network.BSD module.

However, network-bsd-2.7.0.0 and network-bsd-2.8.0.0 passes thru the Network.BSD module from network-2.7.* and network-2.8.* respectively in a non-clashing way via Cabal's reexported-modules feature while ensuring a well-defined API versioning of the observable API of network-bsd. This is why the example above supporting a wide range of network versions works by including version 2.7.0.0 in the required version range of network-bsd.

Changes

2.8.1.0

  • First version to support network-3.0.0.0
  • Fix dead-lock in getProtocolEntries and make the high-level composite get*Entries operations atomic
  • Reexport HostAddress and Family (from network)
  • Provide ifNameToIndex unconditionally
  • Add NFData instances for ServiceEntry, ProtocolEntry, HostEntry, and NetworkEntry
Depends on 3 packages(full list with versions):
Used by 2 packages in nightly-2019-11-29(full list with versions):
comments powered byDisqus