Aleksey Khudyakov committed 055c97c

Add instance for MaybeBin and bump version to

Comments (0)

Files changed (2)


-{-# 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


 Name:           histogram-fill-cereal
 Synopsis:       Library for histograms creation.
   Cereal instances for histogram-fill package
+  .
+  Changes in
+  .
+  * 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
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.