| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ldap.Client.Compare
Description
Compare operation.
This operation comes in four flavours:
- synchronous, exception throwing (
compare) - synchronous, returning
EitherResponseError()(compareEither) - asynchronous,
IObased (compareAsync) - asynchronous,
STMbased (compareAsyncSTM)
Of those, the first one (compare) is probably the most useful for the
typical usecase.
Documentation
compare :: Ldap -> Dn -> Attr -> AttrValue -> IO Bool Source
Perform the Compare operation synchronously. Raises ResponseError on failures.
compareEither :: Ldap -> Dn -> Attr -> AttrValue -> IO (Either ResponseError Bool) Source
Perform the Compare operation synchronously. Returns Left e where
e is a ResponseError on failures.