size-based 0.1.3.1 → 0.1.3.2
raw patch · 4 files changed
+17/−6 lines, 4 filesdep ~template-haskellPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: template-haskell
API changes (from Hackage documentation)
- Control.Enumerable: instance Control.Enumerable.Enumerable GHC.Integer.Type.Integer
- Control.Enumerable: instance Control.Enumerable.Infinite GHC.Integer.Type.Integer
+ Control.Enumerable: instance Control.Enumerable.Enumerable GHC.Num.Integer.Integer
+ Control.Enumerable: instance Control.Enumerable.Infinite GHC.Num.Integer.Integer
Files
- CHANGELOG.md +11/−0
- Control/Enumerable/Count.hs +2/−2
- Control/Enumerable/Values.hs +1/−1
- size-based.cabal +3/−3
CHANGELOG.md view
@@ -1,3 +1,14 @@+* 0.1.3.2 (20 Oct 2023)++ - Test with GHC 9.8+ - Allow `template-haskell-2.21`+ - Fix warnings++* 0.1.3.1-r1 (1 May 2023)++ - Test with GHC 9.6+ - Allow `template-haskell-2.20`+ * 0.1.3.1 (15 Aug 2022) - Allow `template-haskell-2.19`
Control/Enumerable/Count.hs view
@@ -109,12 +109,12 @@ (Count xs0) </> (Count (y:ys0)) = Count ds where ds = go xs0 (reversals' ys0) go [] yrs = []- go (xs) [] = go' xs (tail ds)+ go (xs) [] = go' xs (drop 1 ds) go (x:xs) (yr:yrs) = ((x - conv yr ds) `div` y) : go xs yrs revy = reverse ys0 go' [] _ = []- go' (x:xs) (ds') = ((x - (conv revy ds' )) `div` y) : go' xs (tail ds')+ go' (x:xs) (ds') = ((x - (conv revy ds' )) `div` y) : go' xs (drop 1 ds') -- Yap is the inverse of pay. yap :: Count a -> Count a
Control/Enumerable/Values.hs view
@@ -56,7 +56,7 @@ pure _ = MaxSize [()] MaxSize [] <*> _ = empty _ <*> MaxSize [] = empty- f <*> x = MaxSize $ tail (runMaxSize f ++ runMaxSize x)+ f <*> x = MaxSize $ drop 1 (runMaxSize f ++ runMaxSize x) instance Alternative MaxSize where empty = MaxSize []
size-based.cabal view
@@ -1,5 +1,5 @@ name: size-based-version: 0.1.3.1+version: 0.1.3.2 synopsis: Sized functors, for size-based enumerations description: A framework for size-based enumerations. See the module documentation for details. @@ -12,7 +12,7 @@ build-type: Simple cabal-version: >=1.10 extra-source-files: CHANGELOG.md-tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.1+tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.7 || ==9.6.3 || ==9.8.1 source-repository head type: git@@ -33,5 +33,5 @@ build-depends: base >=4.9 && <5, dictionary-sharing >= 0.1 && < 1.0, testing-type-modifiers >= 0.1 && < 1.0,- template-haskell >=2.5 && <2.20+ template-haskell >=2.5 && <2.22 default-language: Haskell2010