packages feed

phladiprelio-general-datatype 0.10.0.1 → 0.10.1.0

raw patch · 3 files changed

+6/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -73,3 +73,7 @@  * Tenth version revised A. Fixed issue with sumAbsDistNorm function that leads to incorrect results in case of Bounded datatypes. +## 0.10.1.0 -- 2024-04-08++* Tenth version revised B. Removed the too demanding quoting in sumAbsDistNorm function.+
Phladiprelio/General/Distance.hs view
@@ -39,7 +39,7 @@ sumAbsDistNorm :: (Integral a, Ord a) => [a] -> [a] -> a sumAbsDistNorm xs ys   | lc == 0 = 0- | otherwise = fromIntegral $ sum (zipWith (\x y -> toInteger (if x > y then x-y else y-x)) ts vs) `quot` fromIntegral lc+ | otherwise = fromIntegral . sum . zipWith (\x y -> toInteger (if x > y then x-y else y-x)) ts $ vs      where (ts, vs, lc, lx, ly) = toEqLength xs ys   sumSqrDistNorm :: (Real a, Fractional a) => [a] -> [a] -> a
phladiprelio-general-datatype.cabal view
@@ -1,6 +1,6 @@ cabal-version:      1.24 name:               phladiprelio-general-datatype-version:            0.10.0.1+version:            0.10.1.0 synopsis:           Extended functionality of PhLADiPreLiO description:        Can be used not only for language, but also for simpler music and lyrics composing. homepage:           https://hackage.haskell.org/package/phladiprelio-general-datatype