bank-holidays-england 0.2.0.10 → 0.2.0.11
raw patch · 2 files changed
+11/−4 lines, 2 filesdep ~timePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: time
API changes (from Hackage documentation)
Files
bank-holidays-england.cabal view
@@ -1,5 +1,5 @@ name: bank-holidays-england-version: 0.2.0.10+version: 0.2.0.11 synopsis: Calculation of bank holidays in England and Wales description: Calculation of bank holidays in England and Wales, using the rules that have@@ -15,11 +15,12 @@ category: Data build-type: Simple cabal-version: >=1.10+tested-with: GHC ==8.10.7 || ==9.4.8 || ==9.8.2 || ==9.10.1 library exposed-modules: Data.Time.Calendar.BankHoliday.EnglandAndWales build-depends: base >= 4.8 && < 5- , time >= 1.5.0 && < 1.13+ , time >= 1.5.0 && < 1.15 , containers >= 0.5.0 && < 0.8 hs-source-dirs: src ghc-options: -Wall@@ -31,6 +32,7 @@ hs-source-dirs: test default-language: Haskell2010 ghc-options: -Wall+ build-tool-depends: hspec-discover:hspec-discover build-depends: base >= 4.7 && < 5 , bank-holidays-england , QuickCheck
src/Data/Time/Calendar/BankHoliday/EnglandAndWales.hs view
@@ -93,8 +93,13 @@ 4 {- Sun -} -> [dec 26, dec 27] _ -> [dec 25, dec 26] - [jan, may, jun, sep, dec] = map (fromGregorian yy)- [1, 5, 6, 9, 12]+ (jan, may, jun, sep, dec) =+ ( fromGregorian yy 1+ , fromGregorian yy 5+ , fromGregorian yy 6+ , fromGregorian yy 9+ , fromGregorian yy 12+ ) firstMondayIn mm = addDays (negate $ wd mm 02) (mm 07)