Safe Haskell | None |
---|
- data IPv6Addr = IPv6Addr Text
- maybeIPv6Addr :: Text -> Maybe IPv6Addr
- maybePureIPv6Addr :: Text -> Maybe IPv6Addr
- maybeFullIPv6Addr :: Text -> Maybe IPv6Addr
- sameIPv6Addr :: Text -> Text -> Bool
- fromIPv6Addr :: IPv6Addr -> Text
- toIPv6 :: IPv6Addr -> IPv6
- toHostName :: IPv6Addr -> HostName
- toIP6ARPA :: IPv6Addr -> Text
- getIPv6AddrOf :: String -> IO (Maybe IPv6Addr)
- randIPv6Addr :: IO IPv6Addr
Documentation
maybeIPv6Addr :: Text -> Maybe IPv6AddrSource
sameIPv6Addr :: Text -> Text -> BoolSource
Returns True
if arguments are two textual representations of the same IPv6 address.
fromIPv6Addr :: IPv6Addr -> TextSource
Returns the Text
of an IPv6 address.
toIP6ARPA :: IPv6Addr -> TextSource
Returns the reverse lookup domain name corresponding of the given IPv6 address (RFC 3596 Section 2.5).
toIP6ARPA (IPv6Addr "4321:0:1:2:3:4:567:89ab") == "b.a.9.8.7.6.5.0.4.0.0.0.3.0.0.0.2.0.0.0.1.0.0.0.0.0.0.0.1.2.3.4.IP6.ARPA."
randIPv6Addr :: IO IPv6AddrSource
Returns a random IPv6Addr
.