-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Orphan instances for binary -- @package binary-orphans @version 0.1.0.0 -- | Provides orphan Binary instances for types in various packages: -- -- -- -- Also there is Binary Fixed instance. module Data.Binary.Orphans -- | The Binary class provides put and get, methods to -- encode and decode a Haskell value to a lazy ByteString. It -- mirrors the Read and Show classes for textual -- representation of Haskell types, and is suitable for serialising -- Haskell values to disk, over the network. -- -- For decoding and generating simple external binary formats (e.g. C -- structures), Binary may be used, but in general is not suitable for -- complex protocols. Instead use the Put and Get -- primitives directly. -- -- Instances of Binary should satisfy the following property: -- --
--   decode . encode == id
--   
-- -- That is, the get and put methods should be the inverse -- of each other. A range of instances are provided for basic Haskell -- types. class Binary t put :: Binary t => t -> Put get :: Binary t => Get t instance Binary LocalTime instance Binary TimeOfDay instance Binary TimeZone instance Binary NominalDiffTime instance Binary UTCTime instance Binary DiffTime instance Binary UniversalTime instance Binary Day instance Binary (Fixed a) instance Binary b => Binary (Tagged s b) instance Binary Scientific instance (Hashable v, Eq v, Binary v) => Binary (HashSet v) instance (Hashable k, Eq k, Binary k, Binary v) => Binary (HashMap k v) instance Binary Value