| Copyright | 2014 Kei Hibino |
|---|---|
| License | BSD3 |
| Maintainer | ex8k.hibino@gmail.com |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | None |
| Language | Haskell98 |
Text.LDAP.Printer
Description
- type LdapPrinter a = a -> LdapPutM ()
- runLdapPrinter :: LdapPrinter a -> a -> ByteString
- type LdapPutM = Writer (DList ByteString)
- dn :: LdapPrinter DN
- component :: LdapPrinter Component
- attribute :: LdapPrinter Attribute
- ldifDN :: LdapPrinter DN
- ldifAttr :: LdapPrinter v -> LdapPrinter (AttrType, v)
- ldifAttrValue :: LdapPrinter LdifAttrValue
- ldifEncodeAttrValue :: LdapPrinter AttrValue
- openLdapEntry :: LdapPrinter v -> LdapPrinter (DN, [(AttrType, v)])
- openLdapData :: LdapPrinter v -> LdapPrinter [(DN, [(AttrType, v)])]
Documentation
type LdapPrinter a = a -> LdapPutM () Source
LdapPrinter a print type a into context
runLdapPrinter :: LdapPrinter a -> a -> ByteString Source
Run LdapPrinter
type LdapPutM = Writer (DList ByteString) Source
Printer context type for LDAP data stream
dn :: LdapPrinter DN Source
Printer of DN string.
component :: LdapPrinter Component Source
Printer of RDN string.
attribute :: LdapPrinter Attribute Source
Printer of attribute pair string in RDN.
ldifDN :: LdapPrinter DN Source
Printer of LDIF DN line.
ldifAttr :: LdapPrinter v -> LdapPrinter (AttrType, v) Source
Printer of LDIF attribute pair line. Use with ldifAttrValue or ldifEncodeAttrValue printer, like ldifAttr ldifEncodeAttrValue.
ldifAttrValue :: LdapPrinter LdifAttrValue Source
Printer of LDIF attribute value already encoded. Available printer combinator to pass ldifAttr or openLdapEntry, etc ...
ldifEncodeAttrValue :: LdapPrinter AttrValue Source
Printer of LDIF attribute value with encode not safe string. Available printer combinator to pass ldifAttr or openLdapEntry, etc ...
openLdapEntry :: LdapPrinter v -> LdapPrinter (DN, [(AttrType, v)]) Source
OpenLDAP data-stream block printer. Use with ldifAttrValue or ldifEncodeAttrValue printer, like openLdapEntry ldifEncodeAttrValue.
openLdapData :: LdapPrinter v -> LdapPrinter [(DN, [(AttrType, v)])] Source
OpenLDAP data-stream block list printer. Use with ldifAttrValue or ldifEncodeAttrValue printer, like openLdapData ldifEncodeAttrValue.