libjenkins 0.8.4 → 0.9.0
raw patch · 5 files changed
+15/−7 lines, 5 filesdep +network-bsdPVP ok
version bump matches the API change (PVP)
Dependencies added: network-bsd
API changes (from Hackage documentation)
- Jenkins.Rest: data Request :: *
+ Jenkins.Rest: data Request
- Jenkins.Rest: get :: Formatter f -> (forall g. Method Complete g) -> JenkinsT m ByteString
+ Jenkins.Rest: get :: Formatter f -> (forall g. Method 'Complete g) -> JenkinsT m ByteString
- Jenkins.Rest: liftIO :: MonadIO m => forall a. IO a -> m a
+ Jenkins.Rest: liftIO :: MonadIO m => IO a -> m a
- Jenkins.Rest: post :: (forall f. Method Complete f) -> ByteString -> JenkinsT m ByteString
+ Jenkins.Rest: post :: (forall f. Method 'Complete f) -> ByteString -> JenkinsT m ByteString
- Jenkins.Rest: postXml :: (forall f. Method Complete f) -> ByteString -> JenkinsT m ByteString
+ Jenkins.Rest: postXml :: (forall f. Method 'Complete f) -> ByteString -> JenkinsT m ByteString
- Jenkins.Rest: post_ :: (forall f. Method Complete f) -> JenkinsT m ByteString
+ Jenkins.Rest: post_ :: (forall f. Method 'Complete f) -> JenkinsT m ByteString
- Jenkins.Rest: stream :: MonadResource m => Formatter f -> (forall g. Method Complete g) -> JenkinsT m (ResumableSource m ByteString)
+ Jenkins.Rest: stream :: MonadResource m => Formatter f -> (forall g. Method 'Complete g) -> JenkinsT m (ResumableSource m ByteString)
- Jenkins.Rest.Method: (-&-) :: Method Query f -> Method Query f -> Method Query f
+ Jenkins.Rest.Method: (-&-) :: Method 'Query f -> Method 'Query f -> Method 'Query f
- Jenkins.Rest.Method: (-/-) :: Method Complete f -> Method Complete f -> Method Complete f
+ Jenkins.Rest.Method: (-/-) :: Method 'Complete f -> Method 'Complete f -> Method 'Complete f
- Jenkins.Rest.Method: (-=-) :: Text -> Text -> Method Query f
+ Jenkins.Rest.Method: (-=-) :: Text -> Text -> Method 'Query f
- Jenkins.Rest.Method: (-?-) :: Method Complete f -> Method Query f -> Method Complete f
+ Jenkins.Rest.Method: (-?-) :: Method 'Complete f -> Method 'Query f -> Method 'Complete f
- Jenkins.Rest.Method: build :: Text -> Int -> Method Complete f
+ Jenkins.Rest.Method: build :: Text -> Int -> Method 'Complete f
- Jenkins.Rest.Method: computer :: Method Complete f
+ Jenkins.Rest.Method: computer :: Method 'Complete f
- Jenkins.Rest.Method: int :: Int -> Method Complete f
+ Jenkins.Rest.Method: int :: Int -> Method 'Complete f
- Jenkins.Rest.Method: job :: Text -> Method Complete f
+ Jenkins.Rest.Method: job :: Text -> Method 'Complete f
- Jenkins.Rest.Method: json :: Formatter Json
+ Jenkins.Rest.Method: json :: Formatter 'Json
- Jenkins.Rest.Method: overallLoad :: Method Complete f
+ Jenkins.Rest.Method: overallLoad :: Method 'Complete f
- Jenkins.Rest.Method: python :: Formatter Python
+ Jenkins.Rest.Method: python :: Formatter 'Python
- Jenkins.Rest.Method: query :: [(Text, Maybe Text)] -> Method Query f
+ Jenkins.Rest.Method: query :: [(Text, Maybe Text)] -> Method 'Query f
- Jenkins.Rest.Method: queue :: Method Complete f
+ Jenkins.Rest.Method: queue :: Method 'Complete f
- Jenkins.Rest.Method: text :: Text -> Method Complete f
+ Jenkins.Rest.Method: text :: Text -> Method 'Complete f
- Jenkins.Rest.Method: view :: Text -> Method Complete f
+ Jenkins.Rest.Method: view :: Text -> Method 'Complete f
- Jenkins.Rest.Method: xml :: Formatter Xml
+ Jenkins.Rest.Method: xml :: Formatter 'Xml
Files
- CHANGELOG.markdown +5/−0
- libjenkins.cabal +3/−2
- src/Jenkins/Discover.hs +2/−2
- src/Jenkins/Rest.hs +0/−1
- src/Jenkins/Rest/Internal.hs +5/−2
CHANGELOG.markdown view
@@ -1,3 +1,8 @@+0.9.0+=====++ * Supported lts-19.33 (GHC 9.0.2)+ 0.8.4 =====
libjenkins.cabal view
@@ -1,5 +1,5 @@ name: libjenkins-version: 0.8.4+version: 0.9.0 synopsis: Jenkins API interface description: Jenkins API interface. It supports REST and Discovery APIs license: BSD2@@ -27,7 +27,7 @@ source-repository this type: git location: https://github.com/supki/libjenkins- tag: 0.8.4+ tag: 0.9.0 library default-language:@@ -47,6 +47,7 @@ , profunctors >= 4.2 , mtl >= 2.2.1 , network >= 2.6+ , network-bsd >= 2.8 , network-uri >= 2.6 , resourcet >= 1.1 , text >= 0.11
src/Jenkins/Discover.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-}+{-# OPTIONS_GHC -Wno-overflowed-literals #-} -- | Discover Jenkins on the network module Jenkins.Discover ( Discover(..)@@ -17,10 +18,9 @@ import Data.Map (Map) import qualified Data.Map as Map import Data.Maybe (mapMaybe)-import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text.Encoding as Text-import Network.BSD+import Network.BSD (getProtocolNumber) import Network.Socket import Network.Socket.ByteString as ByteString import System.Timeout (timeout)
src/Jenkins/Rest.hs view
@@ -46,7 +46,6 @@ import Control.Monad.Trans.Resource (MonadResource) import qualified Data.ByteString.Lazy as Lazy import qualified Data.ByteString as Strict-import Data.Conduit (ResumableSource) import Data.Data (Data, Typeable) import qualified Data.Foldable as F import Data.Text (Text)
src/Jenkins/Rest/Internal.hs view
@@ -20,6 +20,7 @@ , JF(..) , JenkinsException(..) , iter+ , ResumableSource ) where #if __GLASGOW_HASKELL__ < 710@@ -42,7 +43,8 @@ import Data.ByteString (ByteString) import qualified Data.ByteString.Lazy as Lazy (ByteString) import qualified Data.ByteString.Lazy as ByteString.Lazy-import Data.Conduit (ResumableSource)+import Data.Conduit (ConduitM)+import qualified Data.Kind as Ghc (Type) import Data.Text (Text) import qualified Data.Text.Encoding as Text import Data.Typeable (Typeable)@@ -94,8 +96,9 @@ throwError = JenkinsT . throwError m `catchError` f = JenkinsT (unJenkinsT m `catchError` (unJenkinsT . f)) +type ResumableSource m o = ConduitM () o m () -data JF :: (* -> *) -> * -> * where+data JF :: (Ghc.Type -> Ghc.Type) -> Ghc.Type -> Ghc.Type where Get :: Method 'Complete f -> (Lazy.ByteString -> a) -> JF m a Stream :: MonadResource m => Method 'Complete f -> (ResumableSource m ByteString -> a) -> JF m a Post :: (forall f. Method 'Complete f) -> Lazy.ByteString -> (Lazy.ByteString -> a) -> JF m a