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 # | Note: we use network order (big endian) as opposed to host order (little endian) which differs from the underlying IPv4 type representation. |
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 | |
|
Eq IPv4Range Source # | |
Ord IPv4Range Source # | |
Read IPv4Range Source # | |
Show IPv4Range Source # | |
Generic IPv4Range Source # | |
Hashable IPv4Range Source # | |
ToJSON IPv4Range Source # | |
FromJSON IPv4Range Source # | |
Bits IPv4Range Source # | Notes:
|
FiniteBits IPv4Range Source # | Note: the size is determined by the range length |
Unbox IPv4Range Source # | |
Vector Vector IPv4Range Source # | |
MVector MVector IPv4Range Source # | |
type Rep IPv4Range Source # | |
data Vector IPv4Range Source # | |
data MVector s IPv4Range Source # | |
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.
Eq Mac Source # | |
Ord Mac Source # | |
Read Mac Source # | |
Show Mac Source # | |
Generic Mac Source # | |
Hashable Mac Source # | |
ToJSON Mac Source # | |
ToJSONKey Mac Source # | |
FromJSON Mac Source # | |
FromJSONKey Mac Source # | |
Prim Mac Source # | This only preserves the lower 6 bytes of the 8-byte word that backs a mac address.
It runs slower than it would if it used a full 8-byte word, but it consumes less
space. When storing millions of mac addresses, this is a good trade to make. When
storing a small number of mac address, it might be preferable to make a primitive
array of |
type Rep Mac Source # | |
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, |