haskey-0.2.0.0: A transactional, ACID compliant, embeddable key-value store.

Safe HaskellNone
LanguageHaskell2010

Database.Haskey.Alloc.Transaction

Description

This module implements mechanisms to work with transactions.

Synopsis

Documentation

data Transaction r a Source #

A committed or aborted transaction, with a return value of type a.

Constructors

Commit r a 
Abort a 

commit :: AllocM n => a -> r -> n (Transaction r a) Source #

Commit the new tree and return a computed value.

commit_ :: AllocM n => r -> n (Transaction r ()) Source #

Commit the new tree, without return a computed value.

abort :: AllocM n => a -> n (Transaction r a) Source #

Abort the transaction and return a computed value.

abort_ :: AllocM n => n (Transaction r ()) Source #

Abort the transaction, without returning a computed value.