packages feed

bugzilla-redhat 0.3.0 → 0.3.1

raw patch · 6 files changed

+28/−14 lines, 6 filesdep ~http-conduitPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: http-conduit

API changes (from Hackage documentation)

+ Web.Bugzilla.RedHat: sendBzRequest :: FromJSON a => BugzillaSession -> Request -> IO a

Files

ChangeLog.md view
@@ -1,5 +1,8 @@ # bugzilla-redhat version history +## 0.3.1 (2021-02-07)+- export sendBzRequest+ ## 0.3.0 (2020-08-05) - a fork of Seth Fowler's [bugzilla library](https://hackage.haskell.org/package/bugzilla) - updated to build with Stackage LTS > 5 up to LTS 16 and Nightly
README.md view
@@ -1,12 +1,12 @@-hsbugzilla-==========+# bugzilla-redhat -[![Build Status](https://travis-ci.org/sethfowler/hsbugzilla.png?branch=master)](https://travis-ci.org/sethfowler/hsbugzilla)+![build](https://github.com/juhp/hsbugzilla/workflows/build/badge.svg)+[![Hackage](http://img.shields.io/hackage/v/bugzilla-redhat.png)](http://hackage.haskell.org/package/bugzilla-redhat)+[![Stackage](http://stackage.org/package/bugzilla-redhat/badge/lts)](http://stackage.org/package/bugzilla-redhat) -A Haskell interface to the Bugzilla native REST API.+This is a fork of the Haskell bugzilla native REST API library by Seth Fowler. -Relevant links:+See the haddock documentation for more details. -- The Bugzilla [native REST API](https://wiki.mozilla.org/BMO/REST).-- The (obsolete) [non-native REST API](https://wiki.mozilla.org/Bugzilla%3aREST_API).-- ["Interfacing with RESTful JSON APIs"](https://www.fpcomplete.com/school/to-infinity-and-beyond/competition-winners/interfacing-with-restful-json-apis) on School of Haskell.+Relevant links:+- https://bugzilla.redhat.com/docs/en/html/api/index.html
bugzilla-redhat.cabal view
@@ -1,5 +1,5 @@ name:                bugzilla-redhat-version:             0.3.0+version:             0.3.1 synopsis:            A Haskell interface to the Bugzilla native REST API description:         This package is designed to provide an easy-to-use, typesafe                      interface to querying Bugzilla from Haskell.@@ -12,7 +12,7 @@ license-file:        LICENSE author:              Seth Fowler <mark.seth.fowler@gmail.com> maintainer:          Jens Petersen <juhpetersen@gmail.com>-copyright:           2014 Seth Fowler+copyright:           2014 Seth Fowler,                      2020 Jens Petersen category:            Web build-type:          Simple@@ -37,12 +37,12 @@                        Web.Bugzilla.RedHat.Internal.Search,                        Web.Bugzilla.RedHat.Internal.Types   build-depends:       base >=4.6 && <4.15,-                       aeson >=0.7 && <1.5,+                       aeson >=0.7 && <1.6,                        blaze-builder >=0.3 && <0.5,                        bytestring >=0.10 && <0.11,                        connection >=0.2 && <0.4,                        containers >=0.5 && <0.7,-                       http-conduit >=2.0 && <2.4,+                       http-conduit >=2.1.11 && <2.4,                        http-types >=0.8 && <0.13,                        iso8601-time >=0.1 && <1.6,                        resourcet >=0.4 && <1.3,
demo/BugzillaDemo.hs view
@@ -9,8 +9,8 @@ import System.Environment (getArgs) import System.IO -import Web.Bugzilla-import Web.Bugzilla.Search+import Web.Bugzilla.RedHat+import Web.Bugzilla.RedHat.Search  main :: IO () main = dispatch Nothing Nothing =<< getArgs
src/Web/Bugzilla/RedHat.hs view
@@ -5,6 +5,9 @@ -- | This package is designed to provide an easy-to-use, typesafe --   interface to querying Bugzilla from Haskell. --+--   A modified version of Web.Bugzilla to support+--   the list fields in Red Hat's modified bugzilla API.+-- --   A very simple program using this package might look like this: -- -- >   ctx <- newBugzillaContext "bugzilla.example.org"@@ -43,6 +46,7 @@ , getUser , getUserById , newBzRequest+, sendBzRequest , intAsText  , BugId
src/Web/Bugzilla/RedHat/Search.hs view
@@ -1,6 +1,9 @@ {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} +-- | A modified version of Web.Bugzilla.Search to support+--   the list fields in Red Hat's modified bugzilla API.+ module Web.Bugzilla.RedHat.Search (   -- * Search operators@@ -107,12 +110,16 @@ isEmpty = Term . UnaryOp "isempty"  (.&&.) :: SearchExpression -> SearchExpression -> SearchExpression+(.&&.) (And as) (And bs) = And (as ++ bs)+(.&&.) (And as) a = And (as ++ [a]) (.&&.) a (And as) = And (a:as) (.&&.) a b        = And [a, b] infixr 3 .&&.  (.||.) :: SearchExpression -> SearchExpression -> SearchExpression+(.||.) (Or as) (Or bs) = Or (as ++ bs) (.||.) a (Or as) = Or (a:as)+(.||.) (Or as) a = Or (as ++ [a]) (.||.) a b       = Or [a, b] infixr 2 .||.