Copyright | (C) 2015 Ricky Elrod |
---|---|
License | BSD2 (see LICENSE file) |
Maintainer | Ricky Elrod <ricky@elrod.me> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module deals only with the encoding, parsing, and transformation of IPv4 addresses.
- data IPv4 = IPv4 !Word32
- type IpParseConstraint m = (Monad m, TokenParsing m)
- ipv4Octet :: IpParseConstraint m => m Integer
- ipv4Parser :: IpParseConstraint m => m IPv4
Documentation
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.