Portability | portable |
---|---|
Stability | provisional |
Maintainer | Sigbjorn Finne <[email protected]> |
Safe Haskell | Safe-Infered |
Web.Twitter.Types
Description
This module defines the main types that the Haskell API binding for Twitter introduces. Most importantly, if that's the word, the representation of tweets/status updates.
- type ColorString = String
- type DateString = String
- type UserId = String
- type URLString = String
- type UserName = String
- type StatusId = String
- data Format
- = FormatXML
- | FormatJSON
- | FormatRSS
- | FormatAtom
- newtype UserID = UserID {}
- data Status = Status {}
- nullStatus :: Status
- data User = User {}
- nullUser :: User
- data UserInfo = UserInfo {
- userInfoBackgroundTile :: Bool
- userInfoLinkColor :: ColorString
- userInfoBackground :: ColorString
- userInfoBackgroundImageURL :: URLString
- userInfoTextColor :: ColorString
- userInfoSidebarFill :: ColorString
- userInfoSidebarColor :: ColorString
- userInfoFollowers :: Int
- userInfoDescription :: String
- userInfoUTCOffset :: Int
- userInfoFavorites :: Int
- userInfoCreated :: DateString
- userInfoTimezone :: String
- userInfoImageURL :: URLString
- userInfoURL :: Maybe URLString
- userInfoStatusCount :: Int
- userInfoFriends :: Int
- userInfoScreenName :: UserName
- userInfoProtected :: Bool
- userInfoLocation :: String
- userInfoName :: UserName
- userInfoId :: UserId
- nullUserInfo :: UserInfo
- data DirectMessage = DirectMessage {}
- nullDirectMessage :: DirectMessage
- data RateLimit = RateLimit {}
- nullRateLimit :: RateLimit
- data Trends = Trends {
- trendsAsOf :: DateString
- trendsInfo :: [(String, URLString)]
- nullTrends :: Trends
- data SearchResult = SearchResult {}
- nullSearchResult :: SearchResult
- nullUserID :: UserID
Documentation
type ColorString = StringSource
type DateString = StringSource
Constructors
FormatXML | |
FormatJSON | |
FormatRSS | |
FormatAtom |
Status
is the record type used to represent a ''tweet'',
a status update by a user.
Constructors
Status | |
Fields
|
Constructors
User | |
Fields
|
Constructors
RateLimit
bundles up the data that the getRateLimit
Twitter API call returns regarding API call limits.
Constructors
RateLimit | |
Trends
bundles up the data that the trends
Twitter Search API call returns regarding what's
being majorly tweeted about.
Constructors
Trends | |
Fields
|
data SearchResult Source
SearchResult
bundles up the data that the Search API returns.
Constructors
SearchResult | |
Instances