ip-0.1.0.0: IP and subnetting library for Haskell

Copyright(C) 2015 Ricky Elrod
LicenseBSD2 (see LICENSE file)
MaintainerRicky Elrod <ricky@elrod.me>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Network.IP.IPv4

Description

This module deals only with the encoding, parsing, and transformation of IPv4 addresses.

Synopsis

Documentation

data IPv4

A representation (in Word32 form) of an IPv4 address.

Constructors

IPv4 !Word32 

Instances

type IpParseConstraint m = (Monad m, TokenParsing m)

ipv4Octet :: IpParseConstraint m => m Integer

Parses an individual octet of an IPv4 IP address.

ipv4Parser :: IpParseConstraint m => m IPv4

Parses an IPv4 address into an IPv4 type.