twitter-feed 0.1.0.1 → 0.1.1.0
raw patch · 2 files changed
+8/−5 lines, 2 files
Files
- src/Web/Twitter/Feed.hs +6/−3
- twitter-feed.cabal +2/−2
src/Web/Twitter/Feed.hs view
@@ -25,8 +25,9 @@ type BoundingIndices = [Int] data SimpleTweet = SimpleTweet- { body :: String- , tweetId :: String+ { body :: String+ , tweetId :: String+ , created_at :: String } deriving (Show, Generic) data Tweet = Tweet@@ -176,7 +177,9 @@ simplifyTweet :: Tweet -> SimpleTweet simplifyTweet tweet =- SimpleTweet { body = text tweet, tweetId = idStr tweet }+ SimpleTweet { body = text tweet+ , tweetId = idStr tweet+ , created_at = createdAt tweet } addLink :: Link -> String -> String addLink link tweet = before ++ newHtml link ++ after
twitter-feed.cabal view
@@ -1,5 +1,5 @@ name: twitter-feed-version: 0.1.0.1+version: 0.1.1.0 synopsis: Client for fetching Twitter timeline via Oauth description: Fetches a user timeline from Twitter, and optionally linkifies the results using the Twitter entity API. homepage: https://github.com/stackbuilders/twitter-feed@@ -18,7 +18,7 @@ library exposed-modules: Web.Twitter.Feed- ghc-options: -threaded -O2 -Wall+ ghc-options: -Wall build-depends: base >=4.6 && <4.7 , json , authenticate-oauth