HAppS-State-0.9.3: Event-based distributed state.
Source code
Contents
Index
HAppS.State.ComponentSystem
Documentation
data
End
Source
Constructors
End
Instances
SubHandlers
End
data
h
:+:
t
Source
Constructors
h
:+:
t
Instances
(
Methods
a,
Component
a,
SubHandlers
b) =>
SubHandlers
(a
:+:
b)
class
(
Serialize
ev,
Serialize
res) =>
UpdateEvent
ev res | ev -> res
Source
Instances
UpdateEvent
SetCheckpointState
()
UpdateEvent
SetCheckpointState
()
Typeable
st =>
UpdateEvent
(
SetNewState
st)
()
Typeable
st =>
UpdateEvent
(
SetNewState
st)
()
class
(
Serialize
ev,
Serialize
res) =>
QueryEvent
ev res | ev -> res
Source
Instances
QueryEvent
GetCheckpointState
ByteString
QueryEvent
GetCheckpointState
ByteString
Typeable
st =>
QueryEvent
(
GetState
st)
ByteString
Typeable
st =>
QueryEvent
(
GetState
st)
ByteString
data
Method
st
where
Source
Constructors
Update
::
UpdateEvent
ev res => (ev ->
Update
st res) ->
Method
st
Query
::
QueryEvent
ev res => (ev ->
Query
st res) ->
Method
st
Instances
Show
(
Method
st)
class
Methods
a
where
Source
Methods
methods
::
Proxy
a -> [
Method
a]
Source
data
MethodMap
where
Source
Constructors
MethodMap
::
Component
st =>
Map
String
(
Method
st) ->
MethodMap
Instances
Show
MethodMap
type
ComponentTree
=
Map
String
MethodMap
Source
type
ComponentVersions
=
Map
String
[
ByteString
]
Source
class
(
SubHandlers
(
Dependencies
a),
Serialize
a) =>
Component
a
where
Source
Associated Types
type
Dependencies
a
Source
Methods
initialValue
:: a
Source
onLoad
::
Proxy
a ->
IO
()
Source
class
SubHandlers
a
where
Source
Methods
subHandlers
:: a ->
Collect
()
Source
Instances
SubHandlers
End
(
Methods
a,
Component
a,
SubHandlers
b) =>
SubHandlers
(a
:+:
b)
data
Collection
Source
Constructors
Collection
ComponentTree
ComponentVersions
[
IO
()
]
type
Collect
=
State
Collection
Source
collectHandlers
:: (
Methods
a,
Component
a) =>
Proxy
a -> (
ComponentTree
,
ComponentVersions
, [
IO
()
])
Source
collectHandlers'
:: (
Methods
a,
Component
a) =>
Proxy
a ->
Collect
()
Source
Produced by
Haddock
version 2.4.2