dns-patterns-0.2.0: DNS name parsing and pattern matching utilities
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.DNS.Pattern.Internal

Description

This module is not part of public API and may change even between patch versions.

Synopsis

Documentation

newtype Domain Source #

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.

Constructors

Domain [DomainLabel] 

Instances

Instances details
Eq Domain Source # 
Instance details

Defined in Network.DNS.Internal

Methods

(==) :: Domain -> Domain -> Bool #

(/=) :: Domain -> Domain -> Bool #

Ord Domain Source # 
Instance details

Defined in Network.DNS.Internal

data LabelPattern Source #

A pattern for a singular label.

Constructors

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.