| 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.
- compare :: Ldap -> Dn -> Attr -> AttrValue -> IO Bool
- compareEither :: Ldap -> Dn -> Attr -> AttrValue -> IO (Either ResponseError Bool)
- compareAsync :: Ldap -> Dn -> Attr -> AttrValue -> IO (Async Bool)
- compareAsyncSTM :: Ldap -> Dn -> Attr -> AttrValue -> STM (Async Bool)
- data Async a
- wait :: Async a -> IO (Either ResponseError a)
- waitSTM :: Async a -> STM (Either ResponseError a)
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.
compareAsync :: Ldap -> Dn -> Attr -> AttrValue -> IO (Async Bool) Source
Perform the Compare operation asynchronously. Call wait to wait
for its completion.
compareAsyncSTM :: Ldap -> Dn -> Attr -> AttrValue -> STM (Async Bool) Source
Perform the Compare operation asynchronously.
Don't wait for its completion (with waitSTM) in the
same transaction you've performed it in.