Commits

Aleksey Khudyakov committed 055c97c

Add instance for MaybeBin and bump version to 0.6.2.0

Comments (0)

Files changed (2)

Data/Histogram/Cereal.hs

-{-# OPTIONS_GHC -fno-warn-orphans #-}
+{-# OPTIONS_GHC -fno-warn-orphans       #-}
+{-# LANGUAGE StandaloneDeriving         #-}
+{-# LANGUAGE GeneralizedNewtypeDeriving #-}
 -- | Cereal instances for histogram-fill
 module Data.Histogram.Cereal (
   ) where
 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)
 
 
   get = Bin2D <$> get <*> get
   put (Bin2D bx by) = put bx >> put by
 
+deriving instance (Serialize bin) => Serialize (MaybeBin bin)
+
+
 
 ----------------------------------------------------------------
 -- Histogram

histogram-fill-cereal.cabal

 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.