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]
- newtype Notification = Notification Value
- data Result
- newtype ResultPart = ResultPart Value
- newtype Response = Response {}
- isNotification :: Response -> Bool
- result :: ToJSON a => a -> Response
- responseError :: HsDevError -> Response
- groupResponses :: [Response] -> [([Notification], Result)]
- decodeMessage :: FromJSON a => ByteString -> Either (Msg String) (Msg (Message a))
- encodeMessage :: ToJSON a => Msg (Message a) -> ByteString
- module HsDev.Server.Message.Lisp
Documentation
Message with id to link request and response
Message | |
|
newtype Notification Source #
Notification from server
Result from server
Result Value | Result |
Error HsDevError | Error |
newtype ResultPart Source #
Part of result list, returns via notification
isNotification :: Response -> Bool Source #
responseError :: HsDevError -> Response Source #
groupResponses :: [Response] -> [([Notification], Result)] Source #
decodeMessage :: FromJSON a => ByteString -> Either (Msg String) (Msg (Message a)) Source #
Decode lisp or json request
encodeMessage :: ToJSON a => Msg (Message a) -> ByteString Source #
module HsDev.Server.Message.Lisp