| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Danibot.Slack.Types
- newtype Wire a = Wire {
- unWire :: a
- class Identified i where
- identity :: i -> Text
- class Named n where
- name :: n -> Text
- data Intro = Intro {}
- data Chat = Chat {}
- ims :: Lens' Chat (Map Text IM)
- data Self = Self {}
- data Team = Team {}
- data User = User {}
- data Channel = Channel {}
- data Group = Group {}
- data IM = IM {}
- data Message = Message {
- messageTs :: Text
- messageValue :: Either Value UserMessage
- data Me
- data UserMessage = UserMessage {
- messageChannel :: Text
- messageUser :: Text
- messageText :: Text
- messageMe :: Me
- data ChannelUser = ChannelUser {}
- data Event
- data OutboundMessage = OutboundMessage {
- outboundMessageId :: Integer
- outboundMessageChannel :: Text
- outboundMessageText :: Text
Documentation
Newtype that marks the values that go "over the wire".
Instances
| Functor Wire Source | |
| Show a => Show (Wire a) Source | |
| ToJSON (Wire OutboundMessage) Source | |
| FromJSON (Wire Event) Source | |
| FromJSON (Wire ChannelUser) Source | |
| FromJSON (Wire Message) Source | |
| FromJSON (Wire IM) Source | |
| FromJSON (Wire Group) Source | |
| FromJSON (Wire Channel) Source | |
| FromJSON (Wire User) Source | |
| FromJSON (Wire Team) Source | |
| FromJSON (Wire Self) Source | |
| FromJSON (Wire Intro) Source | |
| Identified i => Identified (Wire i) Source |
class Identified i where Source
Instances
The initial information returned by the Slack API when the RTM is started.
Constructors
| Chat | |
Constructors
| Message | |
Fields
| |
data UserMessage Source
Constructors
| UserMessage | |
Fields
| |
Instances
| Show UserMessage Source | |
| Generic UserMessage Source | |
| ToJSON UserMessage Source | |
| type Rep UserMessage Source |
data ChannelUser Source
Constructors
| ChannelUser | |
Instances
| Show ChannelUser Source | |
| Generic ChannelUser Source | |
| ToJSON ChannelUser Source | |
| FromJSON (Wire ChannelUser) Source | |
| type Rep ChannelUser Source |
Constructors
| HelloEvent | |
| MessageEvent Message | |
| UserTypingEvent ChannelUser | |
| GeneralEvent Value |
data OutboundMessage Source
Constructors
| OutboundMessage | |
Fields
| |
Instances
| Show OutboundMessage Source | |
| Generic OutboundMessage Source | |
| ToJSON OutboundMessage Source | |
| ToJSON (Wire OutboundMessage) Source | |
| type Rep OutboundMessage Source |