Safe Haskell | None |
---|---|
Language | Haskell2010 |
Add operation.
This operation comes in four flavours:
- synchronous, exception throwing (
add
) - synchronous, returning
Either
ResponseError
()
(addEither
) - asynchronous,
IO
based (addAsync
) - asynchronous,
STM
based (addAsyncSTM
)
Of those, the first one (add
) is probably the most useful for the typical usecase.
- add :: Ldap -> Dn -> AttrList NonEmpty -> IO ()
- addEither :: Ldap -> Dn -> AttrList NonEmpty -> IO (Either ResponseError ())
- addAsync :: Ldap -> Dn -> AttrList NonEmpty -> IO (Async ())
- addAsyncSTM :: Ldap -> Dn -> AttrList NonEmpty -> STM (Async ())
- data Async a
- wait :: Async a -> IO (Either ResponseError a)
- waitSTM :: Async a -> STM (Either ResponseError a)
Documentation
add :: Ldap -> Dn -> AttrList NonEmpty -> IO () Source
Perform the Add operation synchronously. Raises ResponseError
on failures.
addEither :: Ldap -> Dn -> AttrList NonEmpty -> IO (Either ResponseError ()) Source
Perform the Add operation synchronously. Returns Left e
where
e
is a ResponseError
on failures.
addAsync :: Ldap -> Dn -> AttrList NonEmpty -> IO (Async ()) Source
Perform the Add operation asynchronously. Call wait
to wait
for its completion.
addAsyncSTM :: Ldap -> Dn -> AttrList NonEmpty -> STM (Async ()) Source
Perform the Add operation asynchronously.
Don't wait for its completion (with waitSTM
) in the
same transaction you've performed it in.