text-ldap-0.1.1.8: Parser and Printer for LDAP text data stream

Copyright2014 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe
LanguageHaskell98

Text.LDAP.Data

Contents

Description

 

Synopsis

DN AST

type Attribute = (AttrType, AttrValue) #

Type of dn attribute

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

Construct OID attribute type

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

Construct dn component (rdn)

type DN = List1 Component #

Type of dn

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

Construct dn

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

Deconstruct dn

type List1 = NonEmpty #

Not empty list type

Weaken constraint but popular list type

type DN' = [Component'] #

Type of dn, simple list type

toDN' :: DN -> DN' #

From DN to DN'

type Component' = [Attribute] #

Type of dn component (rdn), simple list type

Low-level Charset check interfaces

type Bound a = (a, a) #

Type to express value bound

exact :: a -> Bound a #

Bound value to express exact value

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

Element list in value bounds

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

Test element in value bounds.

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

Test element using ordered set.

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

Test not element using ordered set.

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

Test element in value bounds using ordered set.

ordW8 :: Char -> Word8 #

Word8 value of Char

quotation :: Word8 #

Quotation word8 code of dn

specialChars :: [Word8] #

Secial word8 codes of dn

ldifSafeBounds :: [Bound Char] #

Char bounds LDIF safe string

ldifSafeInitBounds :: [Bound Char] #

Char bounds LDIF safe string first char