histogram-fill 0.6.0.0 → 0.6.0.1
raw patch · 2 files changed
+6/−2 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Histogram.Bin.BinF: scaleBinF :: RealFrac f => f -> f -> BinF f -> BinF f
+ Data.Histogram.Bin.BinF: scaleBinF :: (Show f, RealFrac f) => f -> f -> BinF f -> BinF f
- Data.Histogram.Bin.Classes: class Bin b where { type family BinValue b; { inRange b x = i >= 0 && i < nBins b where i = toIndex b x } }
+ Data.Histogram.Bin.Classes: class Bin b where type family BinValue b inRange b x = i >= 0 && i < nBins b where i = toIndex b x
- Data.Histogram.Bin.Classes: class (Bin b, Ord (BinValue b)) => IntervalBin b
+ Data.Histogram.Bin.Classes: class (Bin b, Ord (BinValue b)) => IntervalBin b where binsList b = generate (nBins b) (binInterval b)
- Data.Histogram.Bin.Classes: class VariableBin b => UniformBin b
+ Data.Histogram.Bin.Classes: class VariableBin b => UniformBin b where binSize b = binSizeN b 0
Files
- Data/Histogram/Bin/BinF.hs +1/−1
- histogram-fill.cabal +5/−1
Data/Histogram/Bin/BinF.hs view
@@ -62,7 +62,7 @@ binFstep = BinF -- | 'scaleBinF a b' scales BinF using linear transform 'a+b*x'-scaleBinF :: RealFrac f => f -> f -> BinF f -> BinF f+scaleBinF :: (Show f, RealFrac f) => f -> f -> BinF f -> BinF f scaleBinF a b (BinF base step n) | b > 0 = BinF (a + b*base) (b*step) n | otherwise = error $ "scaleBinF: b must be positive (b = "++show b++")"
histogram-fill.cabal view
@@ -1,5 +1,5 @@ Name: histogram-fill-Version: 0.6.0.0+Version: 0.6.0.1 Cabal-Version: >= 1.6 License: BSD3 License-File: LICENSE@@ -12,6 +12,10 @@ Description: This is library for histograms filling. Its aim to provide convenient way to create and fill histograms. + .+ Changes in 0.6.0.1+ .+ * Fixed compilation with GHC 7.4 source-repository head type: hg