Safe Haskell | None |
---|---|
Language | Haskell2010 |
Miscellaneous functions that don't fit the project directly
- hits :: Timeline -> Timeline
- hits' :: Timeline -> Timeline
- getTweetsFast :: ByteString -> Either String Timeline
- getTweets :: ByteString -> Either (ParseError Char Void) Timeline
- displayTimeline :: Timeline -> String
- displayTimelineColor :: Timeline -> String
- lineByKey :: ByteString -> [(ByteString, ByteString)] -> ByteString
- bird :: String
- getConfigData :: FilePath -> IO [(ByteString, ByteString)]
- filterQuotes :: Timeline -> Timeline
- filterReplies :: Timeline -> Timeline
- filterRTs :: Timeline -> Timeline
Documentation
getTweetsFast :: ByteString -> Either String Timeline Source #
Get a list of tweets from a response, returning author, favorites, retweets, and content. This version uses aeson, which it's far faster, but also has worse error messages.
getTweets :: ByteString -> Either (ParseError Char Void) Timeline Source #
Get a list of tweets from a response, returning author, favorites, retweets, and content.
displayTimeline :: Timeline -> String Source #
Display Timeline without color
displayTimelineColor :: Timeline -> String Source #
Display Timeline in color
lineByKey :: ByteString -> [(ByteString, ByteString)] -> ByteString Source #
Pick out a key value from a key
getConfigData :: FilePath -> IO [(ByteString, ByteString)] Source #
Get pairs of "key" to search for and actual values
filterQuotes :: Timeline -> Timeline Source #
Filter out quotes
filterReplies :: Timeline -> Timeline Source #
Filter out replies