libraft-0.4.1.0: Raft consensus algorithm

Safe HaskellNone
LanguageHaskell2010

Raft.StateMachine

Synopsis

Documentation

class RaftStateMachinePure sm v | sm -> v where Source #

Interface to handle commands in the underlying state machine. Functional dependency permitting only a single state machine command to be defined to update the state machine.

Associated Types

data RaftStateMachinePureError sm v Source #

type RaftStateMachinePureCtx sm v = ctx | ctx -> sm v Source #

class (Monad m, RaftStateMachinePure sm v) => RaftStateMachine m sm v where Source #