ip-0.9.1: Library for IP and MAC addresses
Net.IP
Synopsis
case_ :: (IPv4 -> a) -> (IPv6 -> a) -> IP -> a Source #
ipv4 :: IP -> Maybe IPv4 Source #
If the address is an IPv4 address, return the address.
IPv4
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.
IPv6