hostaddress: Network Host Addresses

[ data, library, mit, network ] [ Propose Tags ]

Host addresses as described in RFC2396 section 3.2.2 with additional consideration of

[Skip to Readme]
Versions [RSS] [faq],
Change log
Dependencies attoparsec (>=0.13), base (>=4.10 && <5), bytestring (>=0.10), case-insensitive (>=1.2), deepseq (>=1.4), exceptions (>=0.10), hashable (>=1.2), iproute (>=1.7), microlens-th (>=0.4), text (>=1.2) [details]
License MIT
Copyright Copyright (c) 2020, Lars Kuhtz <>
Author Lars Kuhtz
Maintainer Lars Kuhtz <>
Category Network
Home page
Bug tracker
Source repo head: git clone
Uploaded by larsk at 2021-10-23T23:27:38Z
Distributions NixOS:
Downloads 485 total (35 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-10-24 [all 1 reports]


[Index] [Quick Jump]

Manual Flags


add support functions and instances for configuration-tools


generate ToJSON and FromJSON instances


include functions for generating arbitrary values and generate Arbitrary instances

Automatic Flags

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees


Readme for hostaddress-

[back to package description]

Cabal Build

Haskell Tools for Host Addresses

This package implements Host addresses as described in RFC2396 section 3.2.2 with additional consideration of

  • RFC1123 (additional restrictions for hostnames),
  • RFC1034 (disambiguate domain names and IPv4 addresses),
  • RFC4291 (parsing of IPv6 addresses), and
  • RFC3986 and RFC5952 (IPv6 literals within host addresses).

Build from Source

cabal build

The following optional build flags are available:

  • -fwith-aeson: build ToJSON and FromJSON instance for use with aeson.

  • -fwith-configuration-tools: build instances and functions for supporting the use with configuration-tools.

  • -fwith-quickcheck: include function for generating arbitrary values and Arbitrary instance for use with QuickCheck.


Documentation is available at