packages feed

advent-of-code-api 0.2.8.3 → 0.2.8.4

raw patch · 3 files changed

+12/−6 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,10 +1,19 @@ Changelog ========= +Version 0.2.8.4+---------------++*December 14, 2022*++<https://github.com/mstksg/advent-of-code-api/releases/tag/v0.2.8.4>++*   Whoops, the member id is a number now too.+ Version 0.2.8.3 --------------- -*December 10, 2022*+*December 13, 2022*  <https://github.com/mstksg/advent-of-code-api/releases/tag/v0.2.8.3> 
advent-of-code-api.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           advent-of-code-api-version:        0.2.8.3+version:        0.2.8.4 synopsis:       Advent of Code REST API bindings and servant API description:    Haskell bindings for Advent of Code REST API and a servant API.  Please use                 responsibly! See README.md or "Advent" module for an introduction and
src/Advent/Types.hs view
@@ -286,7 +286,7 @@         LBM <$> o .: "global_score"             <*> optional (o .: "name")             <*> o .: "local_score"-            <*> (strInt =<< (o .: "id"))+            <*> o .: "id"             <*> optional (                     (fromEpochText   =<< (o .: "last_star_ts"))                 <|> (fromEpochNumber <$> (o .: "last_star_ts"))@@ -299,9 +299,6 @@                       ) cdl                 )       where-        strInt t = case readMaybe t of-          Nothing -> fail "bad int"-          Just i  -> pure i         fromEpochText t = case readMaybe t of           Nothing -> fail "bad stamp"           Just i  -> pure . posixSecondsToUTCTime $ fromInteger i