Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
A 32-bit Internet Protocol version 4 address. To use this with the
network
library, it is necessary to use Network.Socket.htonl
to
convert the underlying Word32
from host byte order to network byte
order.
Bounded IPv4 Source # | |
Enum IPv4 Source # | |
Eq IPv4 Source # | |
Ord IPv4 Source # | |
Read IPv4 Source # | |
Show IPv4 Source # | |
Generic IPv4 Source # | |
Hashable IPv4 Source # | |
ToJSON IPv4 Source # | |
ToJSONKey IPv4 Source # | |
FromJSON IPv4 Source # | |
FromJSONKey IPv4 Source # | |
Storable IPv4 Source # | |
Bits IPv4 Source # | |
FiniteBits IPv4 Source # | |
Prim IPv4 Source # | |
Unbox IPv4 Source # | |
Vector Vector IPv4 Source # | |
MVector MVector IPv4 Source # | |
type Rep IPv4 Source # | |
data Vector IPv4 Source # | |
data MVector s IPv4 Source # | |
A 128-bit Internet Protocol version 6 address.
A 32-bit IPv4
address or a 128-bit IPv6
address. Internally, this
is just represented as an IPv6
address. The functions provided
in Net.IP
help simulate constructing and pattern matching on values
of this type. All functions and typeclass methods that convert
IP
values to text will display it as an IPv4
address if possible.
The length should be between 0 and 32. These bounds are inclusive. This expectation is not in any way enforced by this library because it does not cause errors. A mask length greater than 32 will be treated as if it were 32.
IPv4Range | |
|
A 48-bit MAC address. Do not use the data constructor for this type. It is not considered part of the stable API, and it allows you to construct invalid MAC addresses.
data MacGrouping Source #
The format expected by the mac address parser. The Word8
taken
by some of these constructors is the ascii value of the character
to be used as the separator. This is typically a colon, a hyphen, or
a space character. All decoding functions are case insensitive.
MacGroupingPairs !Char | Two-character groups, |
MacGroupingTriples !Char | Three-character groups, |
MacGroupingQuadruples !Char | Four-character groups, |
MacGroupingNoSeparator | No separator, |