Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ServerArgs m deltaOut = ServerArgs {
- serverDeltaReject :: m ()
- serverSendCurrent :: deltaOut -> m ()
- data ServerReturn m f initOut deltaIn deltaOut = ServerReturn {
- serverInitOut :: initOut
- serverOnOpen :: ServerArgs m deltaOut -> m (TVar (f (Async ())))
- serverOnReceive :: ServerArgs m deltaOut -> deltaIn -> m ()
- data ServerContinue m f initOut deltaIn deltaOut = ServerContinue {
- serverContinue :: Broadcast m -> m (ServerReturn m f initOut deltaIn deltaOut)
- serverOnUnsubscribe :: m ()
- type Server m f initIn initOut deltaIn deltaOut = initIn -> m (Maybe (ServerContinue m f initOut deltaIn deltaOut))
- staticServer :: MonadIO m => Alternative f => (initIn -> m (Maybe initOut)) -> Server m f initIn initOut JSONVoid JSONVoid
- data ClientReturn m initOut deltaIn = ClientReturn {
- clientSendCurrent :: deltaIn -> m ()
- clientInitOut :: initOut
- clientUnsubscribe :: m ()
- data ClientArgs m initIn initOut deltaIn deltaOut = ClientArgs {
- clientReceive :: ClientReturn m initOut deltaIn -> deltaOut -> m ()
- clientInitIn :: initIn
- clientOnReject :: m ()
- type Client m initIn initOut deltaIn deltaOut = (ClientArgs m initIn initOut deltaIn deltaOut -> m (Maybe (ClientReturn m initOut deltaIn))) -> m ()
- staticClient :: Monad m => ((initIn -> m (Maybe initOut)) -> m ()) -> Client m initIn initOut JSONVoid JSONVoid
- newtype Topic = Topic {}
- type Broadcast m = Topic -> m (Maybe (Value -> Maybe (m ())))
- data JSONVoid
- data WithSessionID a = WithSessionID {}
- data WithTopic a = WithTopic {
- withTopicTopic :: !Topic
- withTopicContent :: a
- data InitResponse a
- data WSHTTPResponse = NoSessionID
- data WSIncoming a
- = WSUnsubscribe { }
- | WSIncoming a
- data WSOutgoing a
Conceptual
Server
data ServerArgs m deltaOut Source #
ServerArgs | |
|
data ServerReturn m f initOut deltaIn deltaOut Source #
ServerReturn | |
|
data ServerContinue m f initOut deltaIn deltaOut Source #
ServerContinue | |
|
type Server m f initIn initOut deltaIn deltaOut = initIn -> m (Maybe (ServerContinue m f initOut deltaIn deltaOut)) Source #
Client
data ClientReturn m initOut deltaIn Source #
ClientReturn | |
|
data ClientArgs m initIn initOut deltaIn deltaOut Source #
ClientArgs | |
|
type Client m initIn initOut deltaIn deltaOut = (ClientArgs m initIn initOut deltaIn deltaOut -> m (Maybe (ClientReturn m initOut deltaIn))) -> m () Source #
Topic
Broadcast
JSON Encodings
data WithSessionID a Source #
Eq a => Eq (WithSessionID a) Source # | |
Show a => Show (WithSessionID a) Source # | |
Generic (WithSessionID a) Source # | |
ToJSON a => ToJSON (WithSessionID a) Source # | |
FromJSON a => FromJSON (WithSessionID a) Source # | |
NFData a => NFData (WithSessionID a) Source # | |
type Rep (WithSessionID a) Source # | |
WithTopic | |
|
data InitResponse a Source #
Eq a => Eq (InitResponse a) Source # | |
Show a => Show (InitResponse a) Source # | |
Generic (InitResponse a) Source # | |
ToJSON a => ToJSON (InitResponse a) Source # | |
FromJSON a => FromJSON (InitResponse a) Source # | |
NFData a => NFData (InitResponse a) Source # | |
type Rep (InitResponse a) Source # | |
data WSHTTPResponse Source #
data WSIncoming a Source #
Eq a => Eq (WSIncoming a) Source # | |
Show a => Show (WSIncoming a) Source # | |
Generic (WSIncoming a) Source # | |
ToJSON a => ToJSON (WSIncoming a) Source # | |
FromJSON a => FromJSON (WSIncoming a) Source # | |
NFData a => NFData (WSIncoming a) Source # | |
type Rep (WSIncoming a) Source # | |
data WSOutgoing a Source #
WSTopicsSubscribed [Topic] | |
WSTopicAdded !Topic | |
WSTopicRemoved !Topic | |
WSTopicRejected !Topic | |
WSDecodingError !String | |
WSOutgoing a |
Eq a => Eq (WSOutgoing a) Source # | |
Show a => Show (WSOutgoing a) Source # | |
Generic (WSOutgoing a) Source # | |
ToJSON a => ToJSON (WSOutgoing a) Source # | |
FromJSON a => FromJSON (WSOutgoing a) Source # | |
NFData a => NFData (WSOutgoing a) Source # | |
type Rep (WSOutgoing a) Source # | |