Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data MessageSender
- = MessageSenderUser { }
- | MessageSenderChat { }
Documentation
data MessageSender Source #
Contains information about the sender of a message
MessageSenderUser | The message was sent by a known user |
MessageSenderChat | The message was sent on behalf of a chat |
Instances
FromJSON MessageSender Source # | |
Defined in TD.Data.MessageSender parseJSON :: Value -> Parser MessageSender # parseJSONList :: Value -> Parser [MessageSender] # | |
ToJSON MessageSender Source # | |
Defined in TD.Data.MessageSender toJSON :: MessageSender -> Value # toEncoding :: MessageSender -> Encoding # toJSONList :: [MessageSender] -> Value # toEncodingList :: [MessageSender] -> Encoding # | |
Show MessageSender Source # | |
Defined in TD.Data.MessageSender showsPrec :: Int -> MessageSender -> ShowS # show :: MessageSender -> String # showList :: [MessageSender] -> ShowS # | |
Eq MessageSender Source # | |
Defined in TD.Data.MessageSender (==) :: MessageSender -> MessageSender -> Bool # (/=) :: MessageSender -> MessageSender -> Bool # | |
ShortShow MessageSender Source # | |
Defined in TD.Data.MessageSender shortShow :: MessageSender -> String Source # |