diff --git a/ChangeLog b/ChangeLog
new file mode 100644
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,3 @@
+Changes in 0.6.2.0
+
+  * Instance for 'MaybeBin' added
diff --git a/Data/Histogram/Cereal.hs b/Data/Histogram/Cereal.hs
--- a/Data/Histogram/Cereal.hs
+++ b/Data/Histogram/Cereal.hs
@@ -1,6 +1,7 @@
-{-# OPTIONS_GHC -fno-warn-orphans       #-}
-{-# LANGUAGE StandaloneDeriving         #-}
+{-# LANGUAGE FlexibleContexts           #-}
 {-# LANGUAGE GeneralizedNewtypeDeriving #-}
+{-# LANGUAGE StandaloneDeriving         #-}
+{-# OPTIONS_GHC -fno-warn-orphans       #-}
 -- | Cereal instances for histogram-fill
 module Data.Histogram.Cereal (
   ) where
@@ -12,6 +13,7 @@
 
 import Data.Histogram.Bin
 import Data.Histogram.Bin.MaybeBin
+import Data.Histogram.Bin.BinVar
 import Data.Histogram.Generic (Histogram, histogramUO, histData, outOfRange, bins)
 
 
@@ -58,6 +60,13 @@
   put (Bin2D bx by) = put bx >> put by
 
 deriving instance (Serialize bin) => Serialize (MaybeBin bin)
+
+instance (G.Vector v a, G.Vector v Bool, Serialize a, Ord a) => Serialize (BinVarG v a) where
+  get = binVar <$> do n <- get
+                      G.replicateM n get
+  put b = do let v = cuts b
+             put (G.length v)
+             G.forM_ v put
 
 
 
diff --git a/histogram-fill-cereal.cabal b/histogram-fill-cereal.cabal
--- a/histogram-fill-cereal.cabal
+++ b/histogram-fill-cereal.cabal
@@ -1,34 +1,33 @@
 Name:           histogram-fill-cereal
-Version:        0.6.2.0
-Synopsis:       Library for histograms creation.
+Version:        0.8.5.0
+Synopsis:       Binary instances for histogram-fill package
 Description:
   Cereal instances for histogram-fill package
-  .
-  Changes in 0.6.2.0
-  .
-  * Instance for 'MaybeBin' added
 
+
 Cabal-Version:  >= 1.6
 License:        BSD3
 License-File:   LICENSE
 Author:         Alexey Khudyakov
 Maintainer:     Alexey Khudyakov <alexey.skladnoy@gmail.com>
-Homepage:       http://bitbucket.org/Shimuuar/histogram-fill-cereal/
+Homepage:       https://github.com/Shimuuar/histogram-fill/
 Category:       Data
 Build-Type:     Simple
+extra-source-files:
+  ChangeLog
 
 source-repository head
   type:     hg
-  location: http://bitbucket.org/Shimuuar/histogram-fill-cereal
+  location: http://bitbucket.org/Shimuuar/histogram-fill
 source-repository head
   type:     git
-  location: http://github.com/Shimuuar/histogram-fill-cereal
+  location: http://github.com/Shimuuar/histogram-fill
 
 Library
-  Build-Depends:        base >=3 && <5,
-                        cereal,
-                        vector >= 0.7,
-                        histogram-fill >= 0.6
+  Build-Depends: base           >=4.6 && <5
+               , cereal
+               , vector         >= 0.7
+               , histogram-fill >= 0.8.5.0
   Exposed-modules:      Data.Histogram.Cereal
   Ghc-options:          -Wall
   Ghc-prof-options:     -auto-all
