hostaddress: Network Host Addresses

[ library, mit, network ] [ Propose Tags ] [ Report a vulnerability ]

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).


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
with-configuration-tools

add support functions and instances for configuration-tools

Disabled
with-aeson

generate ToJSON and FromJSON instances

Disabled
with-quickcheck

include functions for generating arbitrary values and generate Arbitrary instances

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0
Change log CHANGELOG.md
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]
Tested with ghc ==8.6.5, ghc ==8.8.2
License MIT
Copyright Copyright (c) 2020, Lars Kuhtz <lakuhtz@gmail.com>
Author Lars Kuhtz
Maintainer Lars Kuhtz <lakuhtz@gmail.com>
Category Network
Home page https://github.com/larskuhtz/hostaddress
Bug tracker https://github.com/larskuhtz/hostaddress/issues
Source repo head: git clone https://github.com/larskuhtz/hostaddress.git
Uploaded by larsk at 2021-10-23T23:27:38Z
Distributions NixOS:0.2.0.0
Downloads 947 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-10-24 [all 1 reports]

Readme for hostaddress-0.2.0.0

[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

Documentation is available at [https://hackage.haskell.org/package/hostaddress/]().