| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
MatrixBot.Bot.EventsListener.Filters
Description
Events filtering implementation
Documentation
type UsersFilter = NonEmpty Mxid Source #
Arguments
| :: forall (m :: Type -> Type). MonadLogger m | |
| => Maybe UsersFilter | Whitelisted user IDs |
| -> Mxid | Current user ID |
| -> ExceptT Text m () |
type RoomsFilter = NonEmpty RoomId Source #
Arguments
| :: forall (m :: Type -> Type). MonadLogger m | |
| => Maybe RoomsFilter | Whitelisted room IDs |
| -> RoomId | Current room ID |
| -> ExceptT Text m () |
type MediaMsgtypeFilter = NonEmpty MediaMsgtype Source #
data MediaMsgtype Source #
Instances
| FromJSON MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters Methods parseJSON :: Value -> Parser MediaMsgtype parseJSONList :: Value -> Parser [MediaMsgtype] omittedField :: Maybe MediaMsgtype | |||||
| ToJSON MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters Methods toJSON :: MediaMsgtype -> Value toEncoding :: MediaMsgtype -> Encoding toJSONList :: [MediaMsgtype] -> Value toEncodingList :: [MediaMsgtype] -> Encoding omitField :: MediaMsgtype -> Bool | |||||
| Bounded MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters | |||||
| Enum MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters Methods succ :: MediaMsgtype -> MediaMsgtype pred :: MediaMsgtype -> MediaMsgtype toEnum :: Int -> MediaMsgtype fromEnum :: MediaMsgtype -> Int enumFrom :: MediaMsgtype -> [MediaMsgtype] enumFromThen :: MediaMsgtype -> MediaMsgtype -> [MediaMsgtype] enumFromTo :: MediaMsgtype -> MediaMsgtype -> [MediaMsgtype] enumFromThenTo :: MediaMsgtype -> MediaMsgtype -> MediaMsgtype -> [MediaMsgtype] | |||||
| Generic MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters Associated Types
| |||||
| Show MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters Methods showsPrec :: Int -> MediaMsgtype -> ShowS show :: MediaMsgtype -> String showList :: [MediaMsgtype] -> ShowS | |||||
| Eq MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters | |||||
| type Rep MediaMsgtype Source # | |||||
Defined in MatrixBot.Bot.EventsListener.Filters type Rep MediaMsgtype = D1 ('MetaData "MediaMsgtype" "MatrixBot.Bot.EventsListener.Filters" "matrix-bot-0.2.0-9uSIHSa7xxj9RTOQ8eXB9Z" 'False) ((C1 ('MetaCons "MediaMsgtype_File" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MediaMsgtype_Image" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MediaMsgtype_Video" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MediaMsgtype_Audio" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
Arguments
| :: forall (m :: Type -> Type). MonadLogger m | |
| => Maybe MediaMsgtypeFilter | Whitelisted |
| -> MRoomMessageClientEventContent | |
| -> ExceptT Text m () |