| Stability | provisional |
|---|---|
| Maintainer | michel.boucey@gmail.com |
Text.IPv6Addr
Description
Dealing with IPv6 address text representation, canonization and manipulations.
- type IPv6Addr = Text
- maybeIPv6Addr :: Text -> Maybe IPv6Addr
- maybePureIPv6Addr :: Text -> Maybe IPv6Addr
- maybeFullIPv6Addr :: Text -> Maybe IPv6Addr
- getIPv6AddrOf :: String -> IO (Maybe IPv6Addr)
Documentation
maybeIPv6Addr :: Text -> Maybe IPv6AddrSource
Returns Just the text representation of a canonized
IPv6Addr in conformation with RFC 5952, or Nothing.
maybeIPv6Addr "0:0::FFFF:192.0.2.128" == Just "::ffff:192.0.2.128"
maybePureIPv6Addr :: Text -> Maybe IPv6AddrSource
Returns Just a pure IPv6Addr, or Nothing.
maybePureIPv6Addr "::ffff:192.0.2.128" == Just "::ffff:c000:280"