Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
atomicTransactionPart :: (Ord k, Eq v, MonadIO m, Functor m, HasRqData m, FilterMonad Response m, MonadPlus m) => TransactionBase k v status -> Trans k v status a -> m a Source
createTransaction :: Ord k => String -> (g -> (TSessionId, g), g) -> status -> (k -> IO (Maybe v)) -> (k -> v -> IO ()) -> NominalDiffTime -> IO (TransactionBase k v status)
readVal :: Ord k => k -> Trans k v status (Maybe v, TouchedValues v status)
safeLoadVal :: Ord k => k -> Trans k v status (Maybe v)
getReadSet :: Ord k => Trans k v status (Map k [TouchedValue v status])
finishSession :: Trans k v status ()
data TouchedValue v status :: * -> * -> *
ValueCommitted TSessionId v | |
ValueRead TSessionId v status | |
ValueWritten TSessionId v status |
(Eq v, Eq status) => Eq (TouchedValue v status) | |
(Ord v, Ord status) => Ord (TouchedValue v status) | |
(Show v, Show status) => Show (TouchedValue v status) |
data TouchedValues v status :: * -> * -> *
TouchedValues | |
|
(Show v, Show status) => Show (TouchedValues v status) |
data TransactionBase k v status :: * -> * -> * -> *
TransactionBase | |
|
newtype Trans k v status a :: * -> * -> * -> * -> *
Trans | |
|
type TSessionId = Integer