traildb-0.1.2.0: TrailDB bindings for Haskell

Safe HaskellSafe
LanguageHaskell2010

System.TrailDB.Internal

Synopsis

Documentation

newtype Tdb Source

Constructors

Tdb (CVar (Maybe TdbState)) 

Instances

Generic Tdb Source 
type Rep Tdb Source 

data TdbState Source

Constructors

TdbState 

Fields

tdbPtr :: !(Ptr TdbRaw)
 
decodeBuffer :: !(ForeignPtr Word64)
 
decodeBufferSize :: !Word64
 

data TdbConsRaw Source

Represents the raw TrailDB construction as used in C.

data TdbRaw Source

Represents the raw TrailDB handle as used in C.

type CVar = MVar Source

newCVar :: a -> IO (CVar a) Source

mkWeakCVar :: CVar a -> IO () -> IO (Weak (CVar a)) Source

modifyCVar_ :: CVar a -> (a -> IO a) -> IO () Source

modifyCVar :: CVar a -> (a -> IO (a, b)) -> IO b Source

withCVar :: CVar a -> (a -> IO b) -> IO b Source