Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype IpAddress = IpAddress Word128
- newtype IpNetMask = IpNetMask {}
- data IpBlock v = IpBlock {}
- data Unaligned
- data Canonical
- fromIpv4 :: IpAddress -> IpAddress
- fromIpv4Block :: IpBlock Canonical -> IpBlock v
- isIpv4Block :: IpBlock v -> Bool
- toIpv4Block :: IpBlock v -> Maybe (IpBlock v)
- fromV4 :: IpBlock Canonical -> IpBlock v
- parseIpBlock :: Text -> Either Text (IpBlock Unaligned)
- masksIp :: Word8 -> [Word32]
- showIpAddress :: IpAddress -> String
- showsIpAddress :: IpAddress -> String -> String
- tshowIpAddress :: IpAddress -> Text
- tshowIpBlock :: IpBlock v -> Text
- firstIpAddress :: IpBlock Canonical -> IpAddress
- lastIpAddress :: IpBlock Canonical -> IpAddress
- rangeToBlocks :: Range IpAddress -> [IpBlock Canonical]
- rangeToBlocksDL :: Range IpAddress -> [IpBlock Canonical] -> [IpBlock Canonical]
- blockToRange :: IpBlock Canonical -> Range IpAddress
- isCanonical :: IpBlock v -> Bool
- canonicaliseIpBlock :: IpBlock v -> IpBlock Canonical
- splitIpRange :: Range IpAddress -> (IpBlock Canonical, Maybe (Range IpAddress))
Documentation
Instances
Bounded IpAddress Source # | |
Enum IpAddress Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 succ :: IpAddress -> IpAddress # pred :: IpAddress -> IpAddress # fromEnum :: IpAddress -> Int # enumFrom :: IpAddress -> [IpAddress] # enumFromThen :: IpAddress -> IpAddress -> [IpAddress] # enumFromTo :: IpAddress -> IpAddress -> [IpAddress] # enumFromThenTo :: IpAddress -> IpAddress -> IpAddress -> [IpAddress] # | |
Eq IpAddress Source # | |
Ord IpAddress Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 | |
Read IpAddress Source # | |
Show IpAddress Source # | |
Generic IpAddress Source # | |
SafeEnum IpAddress Source # | |
type Rep IpAddress Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 |
Instances
Bounded IpNetMask Source # | |
Enum IpNetMask Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 succ :: IpNetMask -> IpNetMask # pred :: IpNetMask -> IpNetMask # fromEnum :: IpNetMask -> Int # enumFrom :: IpNetMask -> [IpNetMask] # enumFromThen :: IpNetMask -> IpNetMask -> [IpNetMask] # enumFromTo :: IpNetMask -> IpNetMask -> [IpNetMask] # enumFromThenTo :: IpNetMask -> IpNetMask -> IpNetMask -> [IpNetMask] # | |
Eq IpNetMask Source # | |
Ord IpNetMask Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 | |
Read IpNetMask Source # | |
Show IpNetMask Source # | |
Generic IpNetMask Source # | |
type Rep IpNetMask Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 |
Instances
Bounded (IpBlock v) Source # | |
Eq (IpBlock v) Source # | |
Ord (IpBlock v) Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 | |
Read (IpBlock Unaligned) Source # | |
Show (IpBlock v) Source # | |
Generic (IpBlock v) Source # | |
Contains (IpBlock Canonical) Source # | |
type Rep (IpBlock v) Source # | |
Defined in HaskellWorks.Data.Network.Ip.Ipv6 type Rep (IpBlock v) = D1 ('MetaData "IpBlock" "HaskellWorks.Data.Network.Ip.Ipv6" "hw-ip-2.4.2.1-KjdsdvjGQA9E9yHDWzWWXb" 'False) (C1 ('MetaCons "IpBlock" 'PrefixI 'True) (S1 ('MetaSel ('Just "base") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 IpAddress) :*: S1 ('MetaSel ('Just "mask") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 IpNetMask))) |
isIpv4Block :: IpBlock v -> Bool Source #
fromV4 :: IpBlock Canonical -> IpBlock v Source #
Deprecated: Deprecated due to poor naming. Use fromIpv4Block instead.
showIpAddress :: IpAddress -> String Source #
tshowIpAddress :: IpAddress -> Text Source #
tshowIpBlock :: IpBlock v -> Text Source #
isCanonical :: IpBlock v -> Bool Source #