advent-of-code-api 0.1.2.1 → 0.1.2.2
raw patch · 4 files changed
+16/−10 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +7/−5
- advent-of-code-api.cabal +2/−2
- src/Advent.hs +5/−0
- test-data/correct-rank.txt +2/−3
CHANGELOG.md view
@@ -1,15 +1,17 @@ Changelog ========= -Version 0.1.2.1+Version 0.1.2.X --------------- -*December 8, 2018*+* *December 8, 2018*: *BUGFIX* Switched from *taggy* to *tagsoup*, after observing that *taggy*+ had some issues parsing 2018's Day 8 challenge prompt. -<https://github.com/mstksg/advent-of-code-api/releases/tag/v0.1.2.1>+ <https://github.com/mstksg/advent-of-code-api/releases/tag/v0.1.2.1> -* *BUGFIX* Switched from *taggy* to *tagsoup*, after observing that *taggy*- had some issues parsing 2018's Day 8 challenge prompt.+* *December 8, 2018*: *BUGFIX* Add CPP to deal with building issues on GHC 8.2++ <https://github.com/mstksg/advent-of-code-api/releases/tag/v0.1.2.2> Version 0.1.2.0 ---------------
advent-of-code-api.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: d32ac9493495ca401a31da403484b15234aed2d00cc9267787c63475db1acee2+-- hash: 35e68aade3ca693116d04a94d2d338576feea8f947bc670d878456e2cb8b3e85 name: advent-of-code-api-version: 0.1.2.1+version: 0.1.2.2 synopsis: Advent of Code REST API bindings description: Haskell bindings for Advent of Code REST API. Please use responsibly! See README.md or "Advent" module for an introduction and tutorial.
src/Advent.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE GADTs #-}@@ -99,6 +100,10 @@ import qualified System.IO.Unsafe as Unsafe import qualified Text.HTML.TagSoup as H import qualified Text.HTML.TagSoup.Tree as H++#if !MIN_VERSION_base(4,11,0)+import Data.Semigroup ((<>))+#endif initialThrottleLimit :: Int initialThrottleLimit = 100
test-data/correct-rank.txt view
@@ -1,3 +1,2 @@-SubCorrect (Just 259)-That's the right answer! You are one gold star closer to fixing the time-stream. You got rank 259 on this star's leaderboard.+SubCorrect (Just 98)+<p>That's the right answer! You are <span class="day-success">one gold star</span> closer to fixing the time stream. You achieved <em>rank 98</em> on <a href="/2018/leaderboard/day/8">this star's leaderboard</a> and gained <em>3 points</em>! <a href="/2018/day/8#part2">[Continue to Part Two]</a></p>