text-ldap-0.1.1.14: Parser and Printer for LDAP text data stream
Copyright2014 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.LDAP.Data

Description

 
Synopsis

DN AST

type Attribute = (AttrType, AttrValue) Source #

Type of dn attribute

data AttrType Source #

Type of dn attribute type

Instances

Instances details
Eq AttrType Source # 
Instance details

Defined in Text.LDAP.Data

Ord AttrType Source # 
Instance details

Defined in Text.LDAP.Data

Show AttrType Source # 
Instance details

Defined in Text.LDAP.Data

attrOid :: ByteString -> [ByteString] -> AttrType Source #

Construct OID attribute type

newtype AttrValue Source #

Type of dn attribute value

Constructors

AttrValue ByteString 

Instances

Instances details
Eq AttrValue Source # 
Instance details

Defined in Text.LDAP.Data

Ord AttrValue Source # 
Instance details

Defined in Text.LDAP.Data

Show AttrValue Source # 
Instance details

Defined in Text.LDAP.Data

data Component Source #

Type of dn component (rdn)

Constructors

S Attribute 
L (List1 Attribute) 

Instances

Instances details
Eq Component Source # 
Instance details

Defined in Text.LDAP.Data

Ord Component Source # 
Instance details

Defined in Text.LDAP.Data

Show Component Source # 
Instance details

Defined in Text.LDAP.Data

component :: Attribute -> [Attribute] -> Component Source #

Construct dn component (rdn)

type DN = List1 Component Source #

Type of dn

consDN :: Component -> [Component] -> DN Source #

Construct dn

unconsDN :: DN -> (Component, [Component]) Source #

Deconstruct dn

type List1 = NonEmpty Source #

Not empty list type

Weaken constraint but popular list type

type DN' = [Component'] Source #

Type of dn, simple list type

toDN' :: DN -> DN' Source #

From DN to DN'

type Component' = [Attribute] Source #

Type of dn component (rdn), simple list type

Low-level Charset check interfaces

type Bound a = (a, a) Source #

Type to express value bound

exact :: a -> Bound a Source #

Bound value to express exact value

boundsElems :: Enum a => [(a, a)] -> [a] Source #

Element list in value bounds

inBounds :: (Enum a, Ord a) => a -> [(a, a)] -> Bool infix 4 Source #

Test element in value bounds.

elem' :: Ord a => a -> [a] -> Bool infix 4 Source #

Test element using ordered set.

notElem' :: Ord a => a -> [a] -> Bool infix 4 Source #

Test not element using ordered set.

inSBounds :: (Enum a, Ord a) => a -> [(a, a)] -> Bool infix 4 Source #

Test element in value bounds using ordered set.

ordW8 :: Char -> Word8 Source #

Word8 value of Char

quotation :: Word8 Source #

Quotation word8 code of dn

specialChars :: [Word8] Source #

Secial word8 codes of dn

ldifSafeBounds :: [Bound Char] Source #

Char bounds LDIF safe string

ldifSafeInitBounds :: [Bound Char] Source #

Char bounds LDIF safe string first char