diff --git a/Data/Histogram/Cereal.hs b/Data/Histogram/Cereal.hs
--- a/Data/Histogram/Cereal.hs
+++ b/Data/Histogram/Cereal.hs
@@ -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)
+
 
 
 ----------------------------------------------------------------
diff --git a/histogram-fill-cereal.cabal b/histogram-fill-cereal.cabal
--- a/histogram-fill-cereal.cabal
+++ b/histogram-fill-cereal.cabal
@@ -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
