Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Web.Twitter.Types.Lens
Contents
- Type classes
Status
SearchResult
SearchStatus
SearchMetadata
RetweetedStatus
DirectMessage
Event
Delete
User
List
Entities
ExtendedEntities
ExtendedEntity
Entity
HashTagEntity
UserEntity
URLEntity
MediaEntity
MediaSize
Coordinates
Place
BoundingBox
Contributor
UploadedMedia
ImageSizeType
- Type aliases and sum types
StreamingAPI
EventTarget
Synopsis
- class AsStatus s where
- class AsUser u where
- class HasCreatedAt a where
- created_at :: Lens' a UTCTime
- class AsImageSize a where
- data Status
- statusContributors :: Lens' Status (Maybe [Contributor])
- statusCoordinates :: Lens' Status (Maybe Coordinates)
- statusCreatedAt :: Lens' Status UTCTime
- statusCurrentUserRetweet :: Lens' Status (Maybe StatusId)
- statusEntities :: Lens' Status (Maybe Entities)
- statusExtendedEntities :: Lens' Status (Maybe ExtendedEntities)
- statusFavoriteCount :: Lens' Status Integer
- statusFavorited :: Lens' Status (Maybe Bool)
- statusFilterLevel :: Lens' Status (Maybe Text)
- statusId :: Lens' Status StatusId
- statusInReplyToScreenName :: Lens' Status (Maybe Text)
- statusInReplyToStatusId :: Lens' Status (Maybe StatusId)
- statusInReplyToUserId :: Lens' Status (Maybe UserId)
- statusLang :: Lens' Status (Maybe LanguageCode)
- statusPlace :: Lens' Status (Maybe Place)
- statusPossiblySensitive :: Lens' Status (Maybe Bool)
- statusScopes :: Lens' Status (Maybe Object)
- statusQuotedStatusId :: Lens' Status (Maybe StatusId)
- statusQuotedStatus :: Lens' Status (Maybe Status)
- statusRetweetCount :: Lens' Status Integer
- statusRetweeted :: Lens' Status (Maybe Bool)
- statusRetweetedStatus :: Lens' Status (Maybe Status)
- statusSource :: Lens' Status Text
- statusText :: Lens' Status Text
- statusTruncated :: Lens' Status Bool
- statusUser :: Lens' Status User
- statusWithheldCopyright :: Lens' Status (Maybe Bool)
- statusWithheldInCountries :: Lens' Status (Maybe [Text])
- statusWithheldScope :: Lens' Status (Maybe Text)
- statusDisplayTextRange :: Lens' Status (Maybe DisplayTextRange)
- data SearchResult body
- searchResultStatuses :: forall body body. Lens (SearchResult body) (SearchResult body) body body
- searchResultSearchMetadata :: forall body. Lens' (SearchResult body) SearchMetadata
- data SearchStatus
- searchStatusCreatedAt :: Lens' SearchStatus UTCTime
- searchStatusId :: Lens' SearchStatus StatusId
- searchStatusText :: Lens' SearchStatus Text
- searchStatusSource :: Lens' SearchStatus Text
- searchStatusUser :: Lens' SearchStatus User
- searchStatusCoordinates :: Lens' SearchStatus (Maybe Coordinates)
- data SearchMetadata
- searchMetadataMaxId :: Lens' SearchMetadata StatusId
- searchMetadataSinceId :: Lens' SearchMetadata StatusId
- searchMetadataRefreshURL :: Lens' SearchMetadata URIString
- searchMetadataNextResults :: Lens' SearchMetadata (Maybe URIString)
- searchMetadataCount :: Lens' SearchMetadata Int
- searchMetadataCompletedIn :: Lens' SearchMetadata (Maybe Float)
- searchMetadataSinceIdStr :: Lens' SearchMetadata String
- searchMetadataQuery :: Lens' SearchMetadata String
- searchMetadataMaxIdStr :: Lens' SearchMetadata String
- data RetweetedStatus
- rsCreatedAt :: Lens' RetweetedStatus UTCTime
- rsId :: Lens' RetweetedStatus StatusId
- rsText :: Lens' RetweetedStatus Text
- rsSource :: Lens' RetweetedStatus Text
- rsTruncated :: Lens' RetweetedStatus Bool
- rsEntities :: Lens' RetweetedStatus (Maybe Entities)
- rsUser :: Lens' RetweetedStatus User
- rsRetweetedStatus :: Lens' RetweetedStatus Status
- rsCoordinates :: Lens' RetweetedStatus (Maybe Coordinates)
- data DirectMessage
- dmId :: Lens' DirectMessage EventId
- dmCreatedTimestamp :: Lens' DirectMessage UTCTime
- dmTargetRecipientId :: Lens' DirectMessage UserId
- dmSenderId :: Lens' DirectMessage UserId
- dmText :: Lens' DirectMessage Text
- dmEntities :: Lens' DirectMessage Entities
- data Event
- evCreatedAt :: Lens' Event UTCTime
- evTargetObject :: Lens' Event (Maybe EventTarget)
- evEvent :: Lens' Event Text
- evTarget :: Lens' Event EventTarget
- evSource :: Lens' Event EventTarget
- data Delete
- delId :: Lens' Delete StatusId
- delUserId :: Lens' Delete UserId
- data User
- userContributorsEnabled :: Lens' User Bool
- userCreatedAt :: Lens' User UTCTime
- userDefaultProfile :: Lens' User Bool
- userDefaultProfileImage :: Lens' User Bool
- userEmail :: Lens' User (Maybe Text)
- userDescription :: Lens' User (Maybe Text)
- userFavoritesCount :: Lens' User Int
- userFollowRequestSent :: Lens' User (Maybe Bool)
- userFollowing :: Lens' User (Maybe Bool)
- userFollowersCount :: Lens' User Int
- userFriendsCount :: Lens' User Int
- userGeoEnabled :: Lens' User Bool
- userId :: Lens' User UserId
- userIsTranslator :: Lens' User Bool
- userLang :: Lens' User (Maybe LanguageCode)
- userListedCount :: Lens' User Int
- userLocation :: Lens' User (Maybe Text)
- userName :: Lens' User Text
- userNotifications :: Lens' User (Maybe Bool)
- userProfileBackgroundColor :: Lens' User (Maybe Text)
- userProfileBackgroundImageURL :: Lens' User (Maybe URIString)
- userProfileBackgroundImageURLHttps :: Lens' User (Maybe URIString)
- userProfileBackgroundTile :: Lens' User (Maybe Bool)
- userProfileBannerURL :: Lens' User (Maybe URIString)
- userProfileImageURL :: Lens' User (Maybe URIString)
- userProfileImageURLHttps :: Lens' User (Maybe URIString)
- userProfileLinkColor :: Lens' User Text
- userProfileSidebarBorderColor :: Lens' User Text
- userProfileSidebarFillColor :: Lens' User Text
- userProfileTextColor :: Lens' User Text
- userProfileUseBackgroundImage :: Lens' User Bool
- userProtected :: Lens' User Bool
- userScreenName :: Lens' User Text
- userShowAllInlineMedia :: Lens' User (Maybe Bool)
- userStatusesCount :: Lens' User Int
- userTimeZone :: Lens' User (Maybe Text)
- userURL :: Lens' User (Maybe URIString)
- userUtcOffset :: Lens' User (Maybe Int)
- userVerified :: Lens' User Bool
- userWithheldInCountries :: Lens' User (Maybe [Text])
- userWithheldScope :: Lens' User (Maybe Text)
- data List
- listId :: Lens' List Int
- listName :: Lens' List Text
- listFullName :: Lens' List Text
- listMemberCount :: Lens' List Int
- listSubscriberCount :: Lens' List Int
- listMode :: Lens' List Text
- listUser :: Lens' List User
- data Entities
- enHashTags :: Lens' Entities [Entity HashTagEntity]
- enUserMentions :: Lens' Entities [Entity UserEntity]
- enURLs :: Lens' Entities [Entity URLEntity]
- enMedia :: Lens' Entities [Entity MediaEntity]
- data ExtendedEntities
- exeMedia :: Iso' ExtendedEntities [Entity ExtendedEntity]
- data ExtendedEntity
- exeID :: Lens' ExtendedEntity StatusId
- exeMediaUrl :: Lens' ExtendedEntity URIString
- exeMediaUrlHttps :: Lens' ExtendedEntity URIString
- exeURL :: Lens' ExtendedEntity URLEntity
- exeSizes :: Lens' ExtendedEntity (HashMap Text MediaSize)
- exeType :: Lens' ExtendedEntity Text
- exeVideoInfo :: Lens' ExtendedEntity (Maybe VideoInfo)
- exeDurationMillis :: Lens' ExtendedEntity (Maybe Double)
- exeExtAltText :: Lens' ExtendedEntity (Maybe String)
- data Entity a
- entityBody :: forall a a. Lens (Entity a) (Entity a) a a
- entityIndices :: forall a. Lens' (Entity a) EntityIndices
- data HashTagEntity
- hashTagText :: Iso' HashTagEntity Text
- data UserEntity
- userEntityUserId :: Lens' UserEntity UserId
- userEntityUserName :: Lens' UserEntity UserName
- userEntityUserScreenName :: Lens' UserEntity Text
- data URLEntity
- ueURL :: Lens' URLEntity URIString
- ueExpanded :: Lens' URLEntity URIString
- ueDisplay :: Lens' URLEntity Text
- data MediaEntity
- meType :: Lens' MediaEntity Text
- meId :: Lens' MediaEntity StatusId
- meSizes :: Lens' MediaEntity (HashMap Text MediaSize)
- meMediaURL :: Lens' MediaEntity URIString
- meMediaURLHttps :: Lens' MediaEntity URIString
- meURL :: Lens' MediaEntity URLEntity
- data MediaSize
- msWidth :: Lens' MediaSize Int
- msHeight :: Lens' MediaSize Int
- msResize :: Lens' MediaSize Text
- data Coordinates
- coordinates :: Lens' Coordinates [Double]
- coordinatesType :: Lens' Coordinates Text
- data Place
- placeAttributes :: Lens' Place (HashMap Text Text)
- placeBoundingBox :: Lens' Place (Maybe BoundingBox)
- placeCountry :: Lens' Place Text
- placeCountryCode :: Lens' Place Text
- placeFullName :: Lens' Place Text
- placeId :: Lens' Place Text
- placeName :: Lens' Place Text
- placeType :: Lens' Place Text
- placeURL :: Lens' Place Text
- data BoundingBox
- boundingBoxCoordinates :: Lens' BoundingBox [[[Double]]]
- boundingBoxType :: Lens' BoundingBox Text
- data Contributor
- contributorId :: Lens' Contributor UserId
- contributorScreenName :: Lens' Contributor (Maybe Text)
- data UploadedMedia
- uploadedMediaId :: Lens' UploadedMedia Integer
- uploadedMediaSize :: Lens' UploadedMedia Integer
- uploadedMediaImage :: Lens' UploadedMedia ImageSizeType
- data ImageSizeType
- imageSizeTypeWidth :: Lens' ImageSizeType Int
- imageSizeTypeHeight :: Lens' ImageSizeType Int
- imageSizeTypeType :: Lens' ImageSizeType Text
- data DisplayTextRange
- displayTextRangeStart :: Lens' DisplayTextRange Int
- displayTextRangeEnd :: Lens' DisplayTextRange Int
- type UserId = Integer
- type Friends = [UserId]
- type URIString = Text
- type UserName = Text
- type StatusId = Integer
- type LanguageCode = String
- data StreamingAPI
- data EventTarget
- type EntityIndices = [Int]
- _SStatus :: Prism' StreamingAPI Status
- _SRetweetedStatus :: Prism' StreamingAPI RetweetedStatus
- _SEvent :: Prism' StreamingAPI Event
- _SDelete :: Prism' StreamingAPI Delete
- _SFriends :: Prism' StreamingAPI Friends
- _SDirectMessage :: Prism' StreamingAPI DirectMessage
- _SUnknown :: Prism' StreamingAPI Value
- _ETUser :: Prism' EventTarget User
- _ETStatus :: Prism' EventTarget Status
- _ETList :: Prism' EventTarget List
- _ETUnknown :: Prism' EventTarget Value
Type classes
class AsStatus s where Source #
Instances
AsStatus RetweetedStatus Source # | |
Defined in Web.Twitter.Types.Lens Methods status_id :: Lens' RetweetedStatus StatusId Source # text :: Lens' RetweetedStatus Text Source # user :: Lens' RetweetedStatus User Source # geolocation :: Lens' RetweetedStatus (Maybe Coordinates) Source # | |
AsStatus SearchStatus Source # | |
Defined in Web.Twitter.Types.Lens Methods status_id :: Lens' SearchStatus StatusId Source # text :: Lens' SearchStatus Text Source # user :: Lens' SearchStatus User Source # geolocation :: Lens' SearchStatus (Maybe Coordinates) Source # | |
AsStatus Status Source # | |
Methods
user_id :: Lens' u UserId Source #
name :: Lens' u UserName Source #
screen_name :: Lens' u Text Source #
Instances
AsUser User Source # | |
AsUser UserEntity Source # | |
Defined in Web.Twitter.Types.Lens | |
AsUser (Entity UserEntity) Source # | |
Defined in Web.Twitter.Types.Lens |
class HasCreatedAt a where Source #
Methods
created_at :: Lens' a UTCTime Source #
Instances
HasCreatedAt DirectMessage Source # | |
Defined in Web.Twitter.Types.Lens Methods | |
HasCreatedAt RetweetedStatus Source # | |
Defined in Web.Twitter.Types.Lens Methods | |
HasCreatedAt SearchStatus Source # | |
Defined in Web.Twitter.Types.Lens Methods | |
HasCreatedAt Status Source # | |
Defined in Web.Twitter.Types.Lens | |
HasCreatedAt User Source # | |
Defined in Web.Twitter.Types.Lens |
class AsImageSize a where Source #
Instances
Status
This type represents a Twitter tweet structure. See https://dev.twitter.com/docs/platform-objects/tweets.
Instances
statusContributors :: Lens' Status (Maybe [Contributor]) Source #
SearchResult
data SearchResult body Source #
Instances
FromJSON body => FromJSON (SearchResult body) | |
Defined in Web.Twitter.Types Methods parseJSON :: Value -> Parser (SearchResult body) parseJSONList :: Value -> Parser [SearchResult body] | |
ToJSON body => ToJSON (SearchResult body) | |
Defined in Web.Twitter.Types Methods toJSON :: SearchResult body -> Value toEncoding :: SearchResult body -> Encoding toJSONList :: [SearchResult body] -> Value toEncodingList :: [SearchResult body] -> Encoding | |
Data body => Data (SearchResult body) | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SearchResult body -> c (SearchResult body) Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (SearchResult body) Source # toConstr :: SearchResult body -> Constr Source # dataTypeOf :: SearchResult body -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (SearchResult body)) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (SearchResult body)) Source # gmapT :: (forall b. Data b => b -> b) -> SearchResult body -> SearchResult body Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SearchResult body -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SearchResult body -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SearchResult body -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SearchResult body -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SearchResult body -> m (SearchResult body) Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchResult body -> m (SearchResult body) Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SearchResult body -> m (SearchResult body) Source # | |
Generic (SearchResult body) | |
Defined in Web.Twitter.Types Methods from :: SearchResult body -> Rep (SearchResult body) x Source # to :: Rep (SearchResult body) x -> SearchResult body Source # | |
Show body => Show (SearchResult body) | |
Defined in Web.Twitter.Types | |
Eq body => Eq (SearchResult body) | |
Defined in Web.Twitter.Types Methods (==) :: SearchResult body -> SearchResult body -> Bool Source # (/=) :: SearchResult body -> SearchResult body -> Bool Source # | |
type Rep (SearchResult body) | |
Defined in Web.Twitter.Types type Rep (SearchResult body) = D1 ('MetaData "SearchResult" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "SearchResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "searchResultStatuses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 body) :*: S1 ('MetaSel ('Just "searchResultSearchMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SearchMetadata))) |
searchResultStatuses :: forall body body. Lens (SearchResult body) (SearchResult body) body body Source #
searchResultSearchMetadata :: forall body. Lens' (SearchResult body) SearchMetadata Source #
SearchStatus
data SearchStatus Source #
Instances
SearchMetadata
data SearchMetadata Source #
Instances
RetweetedStatus
data RetweetedStatus Source #
Instances
DirectMessage
data DirectMessage Source #
Instances
dmId :: Lens' DirectMessage EventId Source #
Event
Instances
FromJSON Event | |
Defined in Web.Twitter.Types | |
ToJSON Event | |
Defined in Web.Twitter.Types Methods toEncoding :: Event -> Encoding toJSONList :: [Event] -> Value toEncodingList :: [Event] -> Encoding | |
Data Event | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Event -> c Event Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Event Source # toConstr :: Event -> Constr Source # dataTypeOf :: Event -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Event) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Event) Source # gmapT :: (forall b. Data b => b -> b) -> Event -> Event Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Event -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Event -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Event -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Event -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Event -> m Event Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Event -> m Event Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Event -> m Event Source # | |
Generic Event | |
Show Event | |
Eq Event | |
type Rep Event | |
Defined in Web.Twitter.Types type Rep Event = D1 ('MetaData "Event" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "Event" 'PrefixI 'True) ((S1 ('MetaSel ('Just "evCreatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "evTargetObject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe EventTarget))) :*: (S1 ('MetaSel ('Just "evEvent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "evTarget") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventTarget) :*: S1 ('MetaSel ('Just "evSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EventTarget))))) |
Delete
Instances
FromJSON Delete | |
Defined in Web.Twitter.Types | |
ToJSON Delete | |
Defined in Web.Twitter.Types Methods toEncoding :: Delete -> Encoding toJSONList :: [Delete] -> Value toEncodingList :: [Delete] -> Encoding | |
Data Delete | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Delete -> c Delete Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Delete Source # toConstr :: Delete -> Constr Source # dataTypeOf :: Delete -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Delete) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Delete) Source # gmapT :: (forall b. Data b => b -> b) -> Delete -> Delete Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Delete -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Delete -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Delete -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Delete -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Delete -> m Delete Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Delete -> m Delete Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Delete -> m Delete Source # | |
Generic Delete | |
Show Delete | |
Eq Delete | |
type Rep Delete | |
Defined in Web.Twitter.Types type Rep Delete = D1 ('MetaData "Delete" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "Delete" 'PrefixI 'True) (S1 ('MetaSel ('Just "delId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatusId) :*: S1 ('MetaSel ('Just "delUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId))) |
User
This type represents the Twitter user. See https://dev.twitter.com/docs/platform-objects/users.
Instances
List
Instances
FromJSON List | |
Defined in Web.Twitter.Types | |
ToJSON List | |
Defined in Web.Twitter.Types Methods toEncoding :: List -> Encoding toJSONList :: [List] -> Value toEncodingList :: [List] -> Encoding | |
Data List | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> List -> c List Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c List Source # toConstr :: List -> Constr Source # dataTypeOf :: List -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c List) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c List) Source # gmapT :: (forall b. Data b => b -> b) -> List -> List Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> List -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> List -> r Source # gmapQ :: (forall d. Data d => d -> u) -> List -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> List -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> List -> m List Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> List -> m List Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> List -> m List Source # | |
Generic List | |
Show List | |
Eq List | |
type Rep List | |
Defined in Web.Twitter.Types type Rep List = D1 ('MetaData "List" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "List" 'PrefixI 'True) ((S1 ('MetaSel ('Just "listId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "listName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "listFullName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "listMemberCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "listSubscriberCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "listMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "listUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User))))) |
Entities
Entity handling. See https://dev.twitter.com/docs/platform-objects/entities.
Instances
FromJSON Entities | |
Defined in Web.Twitter.Types | |
ToJSON Entities | |
Defined in Web.Twitter.Types Methods toEncoding :: Entities -> Encoding toJSONList :: [Entities] -> Value toEncodingList :: [Entities] -> Encoding | |
Data Entities | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Entities -> c Entities Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Entities Source # toConstr :: Entities -> Constr Source # dataTypeOf :: Entities -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Entities) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Entities) Source # gmapT :: (forall b. Data b => b -> b) -> Entities -> Entities Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Entities -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Entities -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Entities -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Entities -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Entities -> m Entities Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Entities -> m Entities Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Entities -> m Entities Source # | |
Generic Entities | |
Show Entities | |
Eq Entities | |
type Rep Entities | |
Defined in Web.Twitter.Types type Rep Entities = D1 ('MetaData "Entities" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "Entities" 'PrefixI 'True) ((S1 ('MetaSel ('Just "enHashTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Entity HashTagEntity]) :*: S1 ('MetaSel ('Just "enUserMentions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Entity UserEntity])) :*: (S1 ('MetaSel ('Just "enURLs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Entity URLEntity]) :*: S1 ('MetaSel ('Just "enMedia") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Entity MediaEntity])))) |
ExtendedEntities
data ExtendedEntities Source #
Instances
ExtendedEntity
data ExtendedEntity Source #
Instances
Entity
Instances
Generic1 Entity | |
FromJSON a => FromJSON (Entity a) | |
Defined in Web.Twitter.Types | |
ToJSON a => ToJSON (Entity a) | |
Defined in Web.Twitter.Types Methods toEncoding :: Entity a -> Encoding toJSONList :: [Entity a] -> Value toEncodingList :: [Entity a] -> Encoding | |
Data a => Data (Entity a) | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Entity a -> c (Entity a) Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Entity a) Source # toConstr :: Entity a -> Constr Source # dataTypeOf :: Entity a -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Entity a)) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Entity a)) Source # gmapT :: (forall b. Data b => b -> b) -> Entity a -> Entity a Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Entity a -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Entity a -> r Source # gmapQ :: (forall d. Data d => d -> u) -> Entity a -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> Entity a -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Entity a -> m (Entity a) Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Entity a -> m (Entity a) Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Entity a -> m (Entity a) Source # | |
Generic (Entity a) | |
Show a => Show (Entity a) | |
Eq a => Eq (Entity a) | |
AsUser (Entity UserEntity) Source # | |
Defined in Web.Twitter.Types.Lens | |
type Rep1 Entity | |
Defined in Web.Twitter.Types type Rep1 Entity = D1 ('MetaData "Entity" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "Entity" 'PrefixI 'True) (S1 ('MetaSel ('Just "entityBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1 :*: S1 ('MetaSel ('Just "entityIndices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntityIndices))) | |
type Rep (Entity a) | |
Defined in Web.Twitter.Types type Rep (Entity a) = D1 ('MetaData "Entity" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "Entity" 'PrefixI 'True) (S1 ('MetaSel ('Just "entityBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "entityIndices") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntityIndices))) |
entityIndices :: forall a. Lens' (Entity a) EntityIndices Source #
HashTagEntity
data HashTagEntity Source #
Hashtag entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-hashtags.
Instances
UserEntity
data UserEntity Source #
User mention entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-usermention.
Instances
URLEntity
URL entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-url.
Instances
FromJSON URLEntity | |
Defined in Web.Twitter.Types | |
ToJSON URLEntity | |
Defined in Web.Twitter.Types Methods toEncoding :: URLEntity -> Encoding toJSONList :: [URLEntity] -> Value toEncodingList :: [URLEntity] -> Encoding | |
Data URLEntity | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> URLEntity -> c URLEntity Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c URLEntity Source # toConstr :: URLEntity -> Constr Source # dataTypeOf :: URLEntity -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c URLEntity) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c URLEntity) Source # gmapT :: (forall b. Data b => b -> b) -> URLEntity -> URLEntity Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> URLEntity -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> URLEntity -> r Source # gmapQ :: (forall d. Data d => d -> u) -> URLEntity -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> URLEntity -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> URLEntity -> m URLEntity Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> URLEntity -> m URLEntity Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> URLEntity -> m URLEntity Source # | |
Generic URLEntity | |
Show URLEntity | |
Eq URLEntity | |
type Rep URLEntity | |
Defined in Web.Twitter.Types type Rep URLEntity = D1 ('MetaData "URLEntity" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "URLEntity" 'PrefixI 'True) (S1 ('MetaSel ('Just "ueURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URIString) :*: (S1 ('MetaSel ('Just "ueExpanded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 URIString) :*: S1 ('MetaSel ('Just "ueDisplay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
MediaEntity
data MediaEntity Source #
Instances
MediaSize
Size entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-size.
Instances
FromJSON MediaSize | |
Defined in Web.Twitter.Types | |
ToJSON MediaSize | |
Defined in Web.Twitter.Types Methods toEncoding :: MediaSize -> Encoding toJSONList :: [MediaSize] -> Value toEncodingList :: [MediaSize] -> Encoding | |
Data MediaSize | |
Defined in Web.Twitter.Types Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MediaSize -> c MediaSize Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MediaSize Source # toConstr :: MediaSize -> Constr Source # dataTypeOf :: MediaSize -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MediaSize) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MediaSize) Source # gmapT :: (forall b. Data b => b -> b) -> MediaSize -> MediaSize Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MediaSize -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MediaSize -> r Source # gmapQ :: (forall d. Data d => d -> u) -> MediaSize -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> MediaSize -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> MediaSize -> m MediaSize Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaSize -> m MediaSize Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaSize -> m MediaSize Source # | |
Generic MediaSize | |
Show MediaSize | |
Eq MediaSize | |
AsImageSize MediaSize Source # | |
type Rep MediaSize | |
Defined in Web.Twitter.Types type Rep MediaSize = D1 ('MetaData "MediaSize" "Web.Twitter.Types" "twitter-types-0.11.0-6lFFYE0rUQlGMHikX5kwSs" 'False) (C1 ('MetaCons "MediaSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "msWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "msHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "msResize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
Coordinates
data Coordinates Source #
Instances
coordinates :: Lens' Coordinates [Double] Source #
Place
This type represents a place, named locations with corresponding geo coordinates. See https://dev.twitter.com/docs/platform-objects/places.
Instances
BoundingBox
data BoundingBox Source #
A bounding box of coordinates which encloses the place. See https://dev.twitter.com/docs/platform-objects/places#obj-boundingbox.
Instances
boundingBoxCoordinates :: Lens' BoundingBox [[[Double]]] Source #
Contributor
data Contributor Source #
Instances
UploadedMedia
data UploadedMedia Source #
This type is represents the API response of "/1.1/media/upload.json". See https://dev.twitter.com/docs/api/multiple-media-extended-entities.
Instances
ImageSizeType
data ImageSizeType Source #
Image size type. This type is included in the API response of "/1.1/media/upload.json".
Instances
data DisplayTextRange Source #
unicode code point indices, identifying the inclusive start and exclusive end of the displayable content of the Tweet.
Instances
Type aliases and sum types
type LanguageCode = String Source #
data StreamingAPI Source #
Constructors
SStatus Status | |
SRetweetedStatus RetweetedStatus | |
SEvent Event | |
SDelete Delete | |
SFriends Friends | SScrubGeo ScrubGeo |
SDirectMessage DirectMessage | |
SUnknown Value |
Instances
data EventTarget Source #
Instances
type EntityIndices = [Int] Source #
The character positions the Entity was extracted from
This is experimental implementation. This may be replaced by more definite types.
StreamingAPI
_SUnknown :: Prism' StreamingAPI Value Source #
EventTarget
_ETUnknown :: Prism' EventTarget Value Source #