packages feed

holidays 0.3.0.0 → 0.3.0.1

raw patch · 17 files changed

+15/−45 lines, 17 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

holidays.cabal view
@@ -1,10 +1,12 @@ cabal-version: 3.0- name: holidays-version: 0.3.0.0+version: 0.3.0.1 synopsis: Library for country public holidays description:-  Library for country public holidays. Provides a small EDSL to describe holidays for a country.+  Public holidays with Haskell.+  Because lazy programmers need holidays!+  Provides a small EDSL for finding dates. (Very useful if you are a lonely programmer)+ category: Date homepage: https://github.com/danielc777888/holidays license: MIT@@ -12,12 +14,11 @@ author: Daniel Cabral maintainer: danielc777888@gmail.com extra-doc-files: CHANGELOG.md--tested-with: GHC == 9.8.1 +tested-with: ghc ==9.8.1  source-repository head   type: git-  location: git://github.com/danielc777888/holidays.git+  location: https://github.com/danielc777888/holidays.git  common common   ghc-options: -Wall@@ -25,13 +26,16 @@     base ^>=4.19.0.0,     containers ^>=0.7,     text ^>=2.1,-    time >=1.4 && <2-  default-language: Haskell2010 +    time >=1.4 && <2, +  default-language: Haskell2010+  default-extensions: OverloadedStrings+ library   import: common   exposed-modules:     Holidays+   other-modules:     Holidays.Base     Holidays.DateFinder@@ -42,6 +46,7 @@     Holidays.SouthAfrica     Holidays.UnitedKingdom     Holidays.UnitedStates+   hs-source-dirs: src  test-suite tests@@ -52,7 +57,8 @@     tasty >=1.5,     tasty-hunit >=0.10,     tasty-quickcheck >=0.10,-    text ^>=2.1+    text ^>=2.1,+   hs-source-dirs: tst   main-is: Main.hs   other-modules:
src/Holidays.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE OverloadedStrings #-}- {- | This module determines public holidays based on country code and year. -}@@ -51,4 +49,3 @@ apply (hs, transforms) year =   let validDays = filter (validDay . holidayValue) $ map (\d -> d year) hs -- apply year and filter out invalid days   in  foldr (\d ds -> S.insert (foldr (\t d' -> t ds d') d transforms) ds) S.empty validDays -- apply transforms to valid days-
src/Holidays/Base.hs view
@@ -39,4 +39,3 @@ -- | Day is valid if its not a nullDate validDay :: Day -> Bool validDay = not . (nullDay ==)-
src/Holidays/DateFinder.hs view
@@ -165,4 +165,3 @@   | otherwise = d   where     d' = holidayValue d-
src/Holidays/Germany.hs view
@@ -3,8 +3,6 @@   https://en.wikipedia.org/wiki/Public_holidays_in_Germany   https://publicholidays.de/ --}-{-# LANGUAGE OverloadedStrings #-}- module Holidays.Germany (   holidays, ) where
src/Holidays/Mozambique.hs view
@@ -1,7 +1,5 @@ -- references: -- https://en.wikipedia.org/wiki/Public_holidays_in_Mozambique-{-# LANGUAGE OverloadedStrings #-}- module Holidays.Mozambique (   holidays, ) where
src/Holidays/Namibia.hs view
@@ -1,7 +1,5 @@ -- references: -- https://en.wikipedia.org/wiki/Public_holidays_in_Namibia-{-# LANGUAGE OverloadedStrings #-}- module Holidays.Namibia (   holidays, ) where
src/Holidays/SouthAfrica.hs view
@@ -1,7 +1,5 @@ -- references: -- https://en.wikipedia.org/wiki/Public_holidays_in_South_Africa-{-# LANGUAGE OverloadedStrings #-}- module Holidays.SouthAfrica (   holidays, ) where
src/Holidays/UnitedKingdom.hs view
@@ -1,7 +1,5 @@ -- references: -- https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom-{-# LANGUAGE OverloadedStrings #-}- module Holidays.UnitedKingdom (   holidays, ) where
src/Holidays/UnitedStates.hs view
@@ -1,7 +1,5 @@ -- references: -- https://en.wikipedia.org/wiki/Federal_holidays_in_the_United_States-{-# LANGUAGE OverloadedStrings #-}- module Holidays.UnitedStates (   holidays, ) where
tst/Main.hs view
@@ -19,4 +19,3 @@  propTests :: TestTree propTests = testGroup "Holidays property based tests" [DEU.propTests, GBR.propTests, MOZ.propTests, NAM.propTests, USA.propTests, ZAF.propTests]-
tst/Test/Holidays/Germany.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE OverloadedStrings #-}- module Test.Holidays.Germany (   unitTests,   propTests,@@ -47,4 +45,3 @@  propTests :: TestTree propTests = countryPropTests "DEU" regions-
tst/Test/Holidays/Mozambique.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE OverloadedStrings #-}- module Test.Holidays.Mozambique (   unitTests,   propTests,@@ -43,4 +41,3 @@       hday "armed_forces_day" . sep 25,       hday "day_of_peace_and_reconciliation" . oct 4,       hday "family_day" . christmasDay -}-
tst/Test/Holidays/Namibia.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE OverloadedStrings #-}- module Test.Holidays.Namibia (   unitTests,   propTests,@@ -51,4 +49,3 @@  propTests :: TestTree propTests = countryPropTests "NAM" []-
tst/Test/Holidays/SouthAfrica.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE OverloadedStrings #-}- module Test.Holidays.SouthAfrica (   unitTests,   propTests,@@ -51,4 +49,3 @@  propTests :: TestTree propTests = countryPropTests "ZAF" []-
tst/Test/Holidays/UnitedKingdom.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE OverloadedStrings #-}- module Test.Holidays.UnitedKingdom (   unitTests,   propTests,@@ -42,4 +40,3 @@  propTests :: TestTree propTests = countryPropTests "GBR" []-
tst/Test/Holidays/UnitedStates.hs view
@@ -1,5 +1,3 @@-{-# LANGUAGE OverloadedStrings #-}- module Test.Holidays.UnitedStates (   unitTests,   propTests,@@ -34,4 +32,3 @@  propTests :: TestTree propTests = countryPropTests "USA" []-