HAppS-State-0.9.2: Event-based distributed state.Source codeContentsIndex
HAppS.State.ComponentSystem
Documentation
data End Source
Constructors
End
show/hide Instances
data h :+: t Source
Constructors
h :+: t
show/hide Instances
class (Serialize ev, Serialize res) => UpdateEvent ev res | ev -> resSource
show/hide Instances
class (Serialize ev, Serialize res) => QueryEvent ev res | ev -> resSource
show/hide Instances
data Method st whereSource
Constructors
Update :: UpdateEvent ev res => (ev -> Update st res) -> Method st
Query :: QueryEvent ev res => (ev -> Query st res) -> Method st
show/hide Instances
class Methods a whereSource
Methods
methods :: Proxy a -> [Method a]Source
data MethodMap whereSource
Constructors
MethodMap :: Component st => Map String (Method st) -> MethodMap
show/hide Instances
type ComponentTree = Map String MethodMapSource
class (SubHandlers (Dependencies a), Serialize a) => Component a whereSource
Methods
initialValue :: aSource
onLoad :: Proxy a -> IO ()Source
class SubHandlers a whereSource
Methods
subHandlers :: a -> Collect ()Source
show/hide Instances
data Collection Source
Constructors
Collection ComponentTree [IO ()]
type Collect = State CollectionSource
collectHandlers :: (Methods a, Component a) => Proxy a -> (ComponentTree, [IO ()])Source
collectHandlers' :: (Methods a, Component a) => Proxy a -> Collect ()Source
Produced by Haddock version 2.1.0