happstack-state-0.5.1: Event-based distributed state.

Happstack.State.Types

Synopsis

Documentation

data Env Source

Constructors

Env 

integralRandomR :: (Integral a, RandomGen g) => (a, a) -> g -> (a, g)Source

data TxContext Source

Constructors

TxContext 

type AnyEv a = forall t. (Monad (t STM), MonadTrans t) => Ev (t STM) aSource

ACID computations that work with any state and event types.

newtype Ev m t Source

Monad for ACID event handlers.

Constructors

Ev 

Fields

unEv :: Env -> m t
 

type Query state = Ev (ReaderT state STM)Source

type Update state = Ev (StateT state STM)Source

newtype Shadow t a Source

Constructors

Shadow 

Fields

unShadow :: a
 

newtype UsingXml a Source

Constructors

UsingXml 

Fields

unXml :: a