hostaddress: Network Host Addresses

[ data, library, mit ] [ Propose Tags ]

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

[Skip to Readme]
Versions [faq]
Change log
Dependencies attoparsec (>=0.13), base (>=4.10 && <4.15), 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 <>
Revised Revision 1 made by larsk at 2020-02-13T20:54:31Z
Category Data
Home page
Bug tracker
Source repo head: git clone
Uploaded by larsk at 2020-02-13T08:54:18Z
Distributions NixOS:
Downloads 226 total (7 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 2020-02-13 [all 1 reports]


[Index] [Quick Jump]



add support functions and instances for configuration-tools


generate ToJSON and FromJSON instances


include functions for generating arbitrary values and generate Arbitrary instances


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


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

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 v2-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