Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Message a = Message {
- _messageId :: Maybe String
- _message :: a
- messageId :: forall a. Lens' (Message a) (Maybe String)
- message :: forall a a. Lens (Message a) (Message a) a a
- messagesById :: Maybe String -> [Message a] -> [a]
- data Notification = Notification Value
- data Result
- data ResultPart = ResultPart Value
- newtype Response = Response {}
- isNotification :: Response -> Bool
- notification :: ToJSON a => a -> Response
- result :: ToJSON a => a -> Response
- responseError :: HsDevError -> Response
- resultPart :: ToJSON a => a -> Notification
- groupResponses :: [Response] -> [([Notification], Result)]
- responsesById :: Maybe String -> [Message Response] -> [([Notification], Result)]
Documentation
Message with id to link request and response
Message | |
|
messagesById :: Maybe String -> [Message a] -> [a] Source
Get messages by id
data Notification Source
Notification from server
Result from server
Result Value | Result |
Error HsDevError | Error |
data ResultPart Source
Part of result list, returns via notification
isNotification :: Response -> Bool Source
notification :: ToJSON a => a -> Response Source
resultPart :: ToJSON a => a -> Notification Source
groupResponses :: [Response] -> [([Notification], Result)] Source
responsesById :: Maybe String -> [Message Response] -> [([Notification], Result)] Source