hercules-ci-api-core 0.1.6.0 → 0.1.7.0
raw patch · 3 files changed
+8/−2 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Hercules.API.DayOfWeek: fromNum :: (Integral n, Eq n) => n -> DayOfWeek
+ Hercules.API.DayOfWeek: fromNum :: Integral n => n -> DayOfWeek
Files
- CHANGELOG.md +6/−0
- hercules-ci-api-core.cabal +1/−1
- src/Hercules/API/DayOfWeek.hs +1/−1
CHANGELOG.md view
@@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +## [0.1.7.0] - 2024-05-03++### Added++- `DayOfWeek.fromNum`: no usable with `Eq` instance <!-- I suppsoe removing a constraint counts as a semver addition -->+ ## [0.1.6.0] - 2024-02-12 ### Added
hercules-ci-api-core.cabal view
@@ -1,7 +1,7 @@ cabal-version: 1.12 name: hercules-ci-api-core-version: 0.1.6.0+version: 0.1.7.0 synopsis: Types and convenience modules use across Hercules CI API packages category: API, CI, Testing, DevOps, Nix homepage: https://github.com/hercules-ci/hercules-ci-agent#readme
src/Hercules/API/DayOfWeek.hs view
@@ -77,5 +77,5 @@ -- -- Requires a sensible implementation of the 'Integral' 'mod' method that returns non-negative numbers. -- 'Integer', 'Int', 'Int8', etc are ok. So is the 'Word' family of types, though beware of 'minBound' overflows.-fromNum :: (Integral n, Eq n) => n -> DayOfWeek+fromNum :: (Integral n) => n -> DayOfWeek fromNum n = fromJust (fromNumMaybe (1 + (n - 1) `mod` 7))