| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Net.IP
Pattern Matching
ipv6 :: IP -> Maybe IPv6 Source #
If the address is an IPv6 address, and if it is not
an IPv4-mapped IPv6 address, return the address.
Construction
Textual Conversion
Text
Types
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.