Access the local computer's basic network configuration

Version on this page:
LTS Haskell 21.13:0.2.1
Stackage Nightly 2023-09-27:0.2.1
Latest on Hackage:0.2.1

See all snapshots network-info appears in

BSD-3-Clause licensed by Jacob Stanley
Maintained by Jacob Stanley
This version can be pinned in stack with:network-info-,1633

Module documentation for

Depends on 1 package(full list with versions):
Used by 2 packages in lts-13.11(full list with versions):

This library provides simple read-only access to the local computer's
networking configuration. It is currently capable of getting a list of
all the network interfaces and their respective IPv4, IPv6 and MAC


network-info has been tested and is known to work on Ubuntu 10.10, Mac
OS X 10.6.4, FreeBSD 9.0 and Windows XP/7. It probably works on other
flavours of Linux, OS X, FreeBSD and Windows as well.

Changes (2018-03-??)

  • Fixed a link error that manifested when the C compiler uses C99 by default (#17).