tweet-hs 0.5.3.9 → 0.5.3.10
raw patch · 7 files changed
+19/−17 lines, 7 filesdep −MissingHPVP ok
version bump matches the API change (PVP)
Dependencies removed: MissingH
API changes (from Hackage documentation)
Files
- src/Web/Tweet.hs +0/−1
- src/Web/Tweet/API.hs +1/−4
- src/Web/Tweet/Exec.hs +0/−4
- src/Web/Tweet/Sign.hs +3/−1
- src/Web/Tweet/Utils.hs +7/−4
- src/Web/Tweet/Utils/API.hs +5/−1
- tweet-hs.cabal +3/−2
src/Web/Tweet.hs view
@@ -33,7 +33,6 @@ import Web.Tweet.API import Web.Tweet.Utils.API import Web.Tweet.Types-import Web.Tweet.Utils import Data.List.Split (chunksOf) import Control.Monad import Control.Lens
src/Web/Tweet/API.hs view
@@ -3,14 +3,11 @@ -- | Module containing the functions directly dealing with twitter's API module Web.Tweet.API where -import Network.HTTP.Client-import Network.HTTP.Client.TLS import qualified Data.ByteString.Lazy.Char8 as BSL import Web.Tweet.Types import Web.Tweet.Utils import Control.Monad import Control.Lens-import Web.Tweet.Sign import Text.Megaparsec.Error import Web.Tweet.Utils.API import Data.Composition@@ -160,7 +157,7 @@ -- | Send a DM given text, screen name of recipient. sendDMRaw txt screenName = postRequest ("https://api.twitter.com/1.1/direct_messages/new.json?text=" ++ encoded ++ "&screen_name" ++ screenName ++ ".json")- where encoded = strEncode $ txt+ where encoded = strEncode txt -- | Get DMs, return bytestring of response getDMs :: Int -> FilePath -> IO BSL.ByteString
src/Web/Tweet/Exec.hs view
@@ -5,11 +5,7 @@ import Web.Tweet import Options.Applicative-import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString.Lazy.Char8 as BSL-import Control.Monad-import Data.Foldable (fold)-import Data.List hiding (delete) import Data.Monoid hiding (getAll) import System.Directory import Data.Maybe
src/Web/Tweet/Sign.hs view
@@ -1,7 +1,9 @@ {-# LANGUAGE OverloadedStrings #-} -- | Functions to sign HTTP requests with oAuth-module Web.Tweet.Sign where+module Web.Tweet.Sign ( signRequest+ , signRequestMem+ , mkConfig ) where import Web.Tweet.Utils import Web.Authenticate.OAuth
src/Web/Tweet/Utils.hs view
@@ -1,14 +1,17 @@ -- | Miscellaneous functions that don't fit the project directly-module Web.Tweet.Utils where+module Web.Tweet.Utils (+ hits+ , getTweets+ , displayTimeline+ , displayTimelineColor+ , lineByKey+ , getConfigData ) where import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString as BS2-import Data.Char import Data.List import Web.Tweet.Types-import Control.Lens.Tuple import Control.Lens hiding (noneOf)-import Data.Function import Web.Tweet.Utils.Colors import Data.List.Extra import Web.Tweet.Parser
src/Web/Tweet/Utils/API.hs view
@@ -1,7 +1,11 @@ {-# LANGUAGE OverloadedStrings #-} -- | Utils for working with the API-module Web.Tweet.Utils.API where+module Web.Tweet.Utils.API (+ getRequest+ , postRequest+ , urlString+ , strEncode ) where import Network.HTTP.Client import Network.HTTP.Client.TLS
tweet-hs.cabal view
@@ -1,5 +1,5 @@ name: tweet-hs-version: 0.5.3.9+version: 0.5.3.10 synopsis: Command-line tool for twitter description: a Command Line Interface Tweeter homepage: https://github.com/vmchale/command-line-tweeter#readme@@ -46,13 +46,14 @@ , megaparsec , containers , ansi-wl-pprint- , MissingH , directory , extra , composition , aeson default-language: Haskell2010 default-extensions: LambdaCase+ ghc-options: -fwarn-unused-imports+ -- -fwarn-unused-binds executable tweet hs-source-dirs: app