packages feed

calamity 0.1.4.0 → 0.1.4.1

raw patch · 3 files changed

+11/−14 lines, 3 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Calamity.Metrics.Eff: HistogramSample :: Map Double Double -> Double -> Int -> HistogramSample
+ Calamity.Metrics.Eff: [$sel:buckets:HistogramSample] :: HistogramSample -> Map Double Double
+ Calamity.Metrics.Eff: [$sel:count:HistogramSample] :: HistogramSample -> Int
+ Calamity.Metrics.Eff: [$sel:sum:HistogramSample] :: HistogramSample -> Double

Files

calamity.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 42032cd759481bc362a687c9f261f05fb54e2982b44be513fe52d1030db46b44+-- hash: 7abac2efea437078125c5a92e9a9d5f3bef88949e3c3f3625cc91919091950b8  name:           calamity-version:        0.1.4.0+version:        0.1.4.1 synopsis:       A library for writing discord bots description:    Please see the README on GitHub at <https://github.com/nitros12/calamity#readme> category:       Network, Web
src/Calamity/HTTP/Internal/Types.hs view
@@ -35,17 +35,14 @@   deriving ( Generic )  data DiscordResponseType-  = -- | A good response-    Good LB.ByteString-    -- | We got a response but also exhausted the bucket-  | ExhaustedBucket LB.ByteString Int -- ^ Retry after (milliseconds)-    -- | We hit a 429, no response and ratelimited-  | Ratelimited Int -- ^ Retry after (milliseconds)-                Bool -- ^ Global ratelimit-    -- | Discord's error, we should retry (HTTP 5XX)-  | ServerError Int-    -- | Our error, we should fail-  | ClientError Int LB.ByteString+  = Good LB.ByteString -- ^ A good response+  | ExhaustedBucket -- ^ We got a response but also exhausted the bucket+      LB.ByteString Int -- ^ Retry after (milliseconds)+  | Ratelimited -- ^ We hit a 429, no response and ratelimited+      Int -- ^ Retry after (milliseconds)+      Bool -- ^ Global ratelimit+  | ServerError Int -- ^ Discord's error, we should retry (HTTP 5XX)+  | ClientError Int LB.ByteString -- ^ Our error, we should fail  newtype GatewayResponse = GatewayResponse   { url :: Text
src/Calamity/Metrics/Eff.hs view
@@ -5,7 +5,7 @@     ( Counter     , Gauge     , Histogram-    , HistogramSample+    , HistogramSample(..)     , MetricEff(..)     , registerCounter     , registerGauge