| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.WebSockets.RPC.Types
Contents
- data RPCID
- getRPCID :: RPCID -> Int
- data RPCIdentified a = RPCIdentified {}
- newtype Subscribe a = Subscribe (RPCIdentified a)
- newtype Supply a = Supply {
- getSupply :: RPCIdentified (Maybe a)
- newtype Reply a = Reply (RPCIdentified a)
- newtype Complete a = Complete (RPCIdentified a)
- data ClientToServer sub sup
- data ServerToClient rep com
- data WebSocketRPCException = WebSocketRPCParseFailure [String] ByteString
Documentation
Unique identifier for an RPC session
RPC Methods
data RPCIdentified a #
Constructors
| RPCIdentified | |
Instances
| Eq a => Eq (RPCIdentified a) # | |
| Data a => Data (RPCIdentified a) # | |
| Read a => Read (RPCIdentified a) # | |
| Show a => Show (RPCIdentified a) # | |
| Generic (RPCIdentified a) # | |
| Arbitrary a => Arbitrary (RPCIdentified a) # | |
| ToJSON a => ToJSON (RPCIdentified a) # | |
| FromJSON a => FromJSON (RPCIdentified a) # | |
| type Rep (RPCIdentified a) # | |
Constructors
| Subscribe (RPCIdentified a) |
Nothing means the RPC is canceled
Constructors
| Supply | |
Fields
| |
Constructors
| Reply (RPCIdentified a) |
Constructors
| Complete (RPCIdentified a) |
Categorized
data ClientToServer sub sup #
Instances
| (Eq sup, Eq sub) => Eq (ClientToServer sub sup) # | |
| (Data sup, Data sub) => Data (ClientToServer sub sup) # | |
| (Read sup, Read sub) => Read (ClientToServer sub sup) # | |
| (Show sup, Show sub) => Show (ClientToServer sub sup) # | |
| Generic (ClientToServer sub sup) # | |
| (Arbitrary sub, Arbitrary sup) => Arbitrary (ClientToServer sub sup) # | |
| (ToJSON sub, ToJSON sup) => ToJSON (ClientToServer sub sup) # | |
| (FromJSON sub, FromJSON sup) => FromJSON (ClientToServer sub sup) # | |
| type Rep (ClientToServer sub sup) # | |
data ServerToClient rep com #
Instances
| (Eq com, Eq rep) => Eq (ServerToClient rep com) # | |
| (Data com, Data rep) => Data (ServerToClient rep com) # | |
| (Read com, Read rep) => Read (ServerToClient rep com) # | |
| (Show com, Show rep) => Show (ServerToClient rep com) # | |
| Generic (ServerToClient rep com) # | |
| (Arbitrary sub, Arbitrary sup) => Arbitrary (ServerToClient sub sup) # | |
| (ToJSON rep, ToJSON com) => ToJSON (ServerToClient rep com) # | |
| (FromJSON rep, FromJSON com) => FromJSON (ServerToClient rep com) # | |
| type Rep (ServerToClient rep com) # | |
Exceptions
data WebSocketRPCException #
Constructors
| WebSocketRPCParseFailure [String] ByteString |