packages feed

ixset-typed-binary-instance-0.1.0.0: src/Data/IxSet/Typed/Binary.hs

module Data.IxSet.Typed.Binary where

import Data.Binary
import Data.IxSet.Typed

instance (Indexable ixs x, Binary x) => Binary (IxSet ixs x) where
  put = put . toList
  get = fmap fromList get