ip-0.9.1: Library for IP and MAC addresses

Safe HaskellNone
LanguageHaskell2010

Net.IP

Synopsis

Documentation

case_ :: (IPv4 -> a) -> (IPv6 -> a) -> IP -> a Source #

ipv4 :: IP -> Maybe IPv4 Source #

If the address is an IPv4 address, return the address.

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.