histogram-fill-cereal 0.6.0.0 → 0.6.2.0
raw patch · 2 files changed
+12/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Histogram.Cereal: instance Serialize bin => Serialize (MaybeBin bin)
Files
Data/Histogram/Cereal.hs view
@@ -1,4 +1,6 @@-{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# LANGUAGE StandaloneDeriving #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-} -- | Cereal instances for histogram-fill module Data.Histogram.Cereal ( ) where@@ -9,6 +11,7 @@ import qualified Data.Vector.Generic as G import Data.Histogram.Bin+import Data.Histogram.Bin.MaybeBin import Data.Histogram.Generic (Histogram, histogramUO, histData, outOfRange, bins) @@ -53,6 +56,9 @@ instance (Serialize bX, Serialize bY) => Serialize (Bin2D bX bY) where get = Bin2D <$> get <*> get put (Bin2D bx by) = put bx >> put by++deriving instance (Serialize bin) => Serialize (MaybeBin bin)+ ----------------------------------------------------------------
histogram-fill-cereal.cabal view
@@ -1,8 +1,12 @@ Name: histogram-fill-cereal-Version: 0.6.0.0+Version: 0.6.2.0 Synopsis: Library for histograms creation. Description: Cereal instances for histogram-fill package+ .+ Changes in 0.6.2.0+ .+ * Instance for 'MaybeBin' added Cabal-Version: >= 1.6 License: BSD3