ip: Library for IP and MAC addresses

[ bsd3, library, web ] [ Propose Tags ] [ Report a vulnerability ]

The ip package provides types and functions for dealing with IPv4 addresses, CIDR blocks, and MAC addresses. We provide instances for typeclasses found in commonly used packages like aeson, vector, and hashable. We also provide Parsers for working with attoparsec.

Notably, this package does not overload functions by introducing any typeclasses of its own. Neither does it prefix functions with the name of the type that they work on. Instead, functions of the same name are exported by several different modules, and it is expected that end users disambiguate by importing these modules qualified. For example, Data.IPv4.ByteString.Char8 and Data.IPv4.Text have nearly identical export lists.

The only module intended to be imported unqualified is Net.Types. The types in this package should not conflict with the types in any other commonly used packages.

The following packages are intended to be used with this package:

  • `yesod-ip`: Provides orphan instances needed to work with yesod and persistent. Also, provides a `yesod-form` helper.

  • `impure-containers`: Provides a trie that can be used for looking up which subnet an IP address belongs in.

Downloads

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

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.3, 0.4, 0.5, 0.6.0, 0.6.1, 0.6.2, 0.7, 0.8, 0.8.1, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.9, 0.9.1, 0.9.2, 0.9.3, 1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.4.2.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8
Dependencies aeson (>=0.9 && <1.3), attoparsec, base (>=4.8 && <4.11), bytestring (>=0.10 && <0.11), hashable (>=1.2 && <1.3), primitive, text (>=1.2 && <1.3), vector (>=0.11 && <0.13) [details]
License BSD-3-Clause
Copyright 2016 Andrew Martin
Author Andrew Martin
Maintainer andrew.thaddeus@gmail.com
Revised Revision 1 made by HerbertValerioRiedel at 2019-01-08T15:34:56Z
Category web
Home page https://github.com/andrewthad/haskell-ip#readme
Source repo head: git clone https://github.com/andrewthad/haskell-ip
Uploaded by andrewthad at 2017-10-02T16:36:35Z
Distributions LTSHaskell:1.7.8, NixOS:1.7.8, Stackage:1.7.8
Reverse Dependencies 25 direct, 13 indirect [details]
Downloads 29359 total (191 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-10-02 [all 1 reports]