Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module is not part of public API and may change even between patch versions.
Synopsis
- data DomainLabel = DomainLabel {}
- newtype Domain = Domain [DomainLabel]
- data LabelPattern
- newtype DomainPattern = DomainPattern {}
Documentation
data DomainLabel Source #
Instances
Eq DomainLabel Source # | |
Defined in Network.DNS.Internal (==) :: DomainLabel -> DomainLabel -> Bool # (/=) :: DomainLabel -> DomainLabel -> Bool # | |
Ord DomainLabel Source # | |
Defined in Network.DNS.Internal compare :: DomainLabel -> DomainLabel -> Ordering # (<) :: DomainLabel -> DomainLabel -> Bool # (<=) :: DomainLabel -> DomainLabel -> Bool # (>) :: DomainLabel -> DomainLabel -> Bool # (>=) :: DomainLabel -> DomainLabel -> Bool # max :: DomainLabel -> DomainLabel -> DomainLabel # min :: DomainLabel -> DomainLabel -> DomainLabel # |
A domain parsed into labels. Each label is a ShortByteString
rather than Text
or String
because a label can contain arbitrary bytes.
However, the Ord
and Eq
instances do limited case-folding according to RFC4343.
data LabelPattern Source #
A pattern for a singular label.
DomLiteral DomainLabel | Represents an exact label that must be matched. |
DomGlob | Represents a single asterisk glob matching any arbitrary domain at a given level. |
DomGlobStar | Represents a double asterisk matching any arbitrary subdomain at a given level. |
Instances
Eq LabelPattern Source # | |
Defined in Network.DNS.Pattern.Internal (==) :: LabelPattern -> LabelPattern -> Bool # (/=) :: LabelPattern -> LabelPattern -> Bool # | |
Ord LabelPattern Source # | |
Defined in Network.DNS.Pattern.Internal compare :: LabelPattern -> LabelPattern -> Ordering # (<) :: LabelPattern -> LabelPattern -> Bool # (<=) :: LabelPattern -> LabelPattern -> Bool # (>) :: LabelPattern -> LabelPattern -> Bool # (>=) :: LabelPattern -> LabelPattern -> Bool # max :: LabelPattern -> LabelPattern -> LabelPattern # min :: LabelPattern -> LabelPattern -> LabelPattern # |
newtype DomainPattern Source #
A domain pattern.
Instances
Eq DomainPattern Source # | |
Defined in Network.DNS.Pattern.Internal (==) :: DomainPattern -> DomainPattern -> Bool # (/=) :: DomainPattern -> DomainPattern -> Bool # | |
Ord DomainPattern Source # | |
Defined in Network.DNS.Pattern.Internal compare :: DomainPattern -> DomainPattern -> Ordering # (<) :: DomainPattern -> DomainPattern -> Bool # (<=) :: DomainPattern -> DomainPattern -> Bool # (>) :: DomainPattern -> DomainPattern -> Bool # (>=) :: DomainPattern -> DomainPattern -> Bool # max :: DomainPattern -> DomainPattern -> DomainPattern # min :: DomainPattern -> DomainPattern -> DomainPattern # |