packages feed

tagged-binary 0.2.0.0 → 0.2.0.1

raw patch · 6 files changed

+29/−15 lines, 6 filesdep +base-compatPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies added: base-compat

API changes (from Hackage documentation)

- Data.Binary.Tagged.Internal: instance Binary TagFingerprint
- Data.Binary.Tagged.Internal: instance Binary TagLead
- Data.Binary.Tagged.Internal: instance Binary a => Binary (Tagged a)
- Data.Binary.Tagged.Internal: instance Constructor C1_0TagFingerprint
- Data.Binary.Tagged.Internal: instance Constructor C1_0Tagged
- Data.Binary.Tagged.Internal: instance Datatype D1TagFingerprint
- Data.Binary.Tagged.Internal: instance Datatype D1Tagged
- Data.Binary.Tagged.Internal: instance Eq TagFingerprint
- Data.Binary.Tagged.Internal: instance Eq a => Eq (Tagged a)
- Data.Binary.Tagged.Internal: instance Generic (Tagged a)
- Data.Binary.Tagged.Internal: instance Generic TagFingerprint
- Data.Binary.Tagged.Internal: instance Ord TagFingerprint
- Data.Binary.Tagged.Internal: instance Show TagFingerprint
- Data.Binary.Tagged.Internal: instance Show a => Show (Tagged a)
- Data.Binary.Tagged.Internal: instance Typeable TagFingerprint
- Data.Binary.Tagged.Internal: instance Typeable Tagged
+ Data.Binary.Tagged.Internal: instance Data.Binary.Class.Binary Data.Binary.Tagged.Internal.TagFingerprint
+ Data.Binary.Tagged.Internal: instance Data.Binary.Class.Binary Data.Binary.Tagged.Internal.TagLead
+ Data.Binary.Tagged.Internal: instance Data.Binary.Class.Binary a => Data.Binary.Class.Binary (Data.Binary.Tagged.Internal.Tagged a)
+ Data.Binary.Tagged.Internal: instance GHC.Classes.Eq Data.Binary.Tagged.Internal.TagFingerprint
+ Data.Binary.Tagged.Internal: instance GHC.Classes.Eq a => GHC.Classes.Eq (Data.Binary.Tagged.Internal.Tagged a)
+ Data.Binary.Tagged.Internal: instance GHC.Classes.Ord Data.Binary.Tagged.Internal.TagFingerprint
+ Data.Binary.Tagged.Internal: instance GHC.Generics.Generic (Data.Binary.Tagged.Internal.Tagged a)
+ Data.Binary.Tagged.Internal: instance GHC.Generics.Generic Data.Binary.Tagged.Internal.TagFingerprint
+ Data.Binary.Tagged.Internal: instance GHC.Show.Show Data.Binary.Tagged.Internal.TagFingerprint
+ Data.Binary.Tagged.Internal: instance GHC.Show.Show a => GHC.Show.Show (Data.Binary.Tagged.Internal.Tagged a)

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+0.2.0.1+-------+<https://github.com/mstksg/tagged-binary/releases/tag/v0.2.0.1>++*   Compatibility with *base-4.10* and ghc 8.2.+ 0.2.0.0 ------- <https://github.com/mstksg/tagged-binary/releases/tag/v0.2.0.0>
Data/Binary/Tagged.hs view
@@ -1,6 +1,6 @@ -- | -- Module      : Data.Binary.Tagged--- Copyright   : (c) Justin Le 2014+-- Copyright   : (c) Justin Le 2015 -- License     : MIT -- -- Maintainer  : justin@jle.im@@ -28,7 +28,7 @@ -- > > decodeTagged x :: Maybe Int -- > Just 1 ----- The interface is very similar to that of 'Data.Dynamic'.+-- The interface is very similar to that of "Data.Dynamic". -- -- Also provided here is the internal 'TagFingerprint' data type, so that -- you can categorize, sort, and queue 'Tagged' or 'ByteString' based on@@ -40,7 +40,7 @@ -- have a better implementation eventually.  For now, it just uses an MD5 -- hash of the string name of the type.  So for now, don't encode/decode -- things with the same type name but exist in different modules--- ('Data.Text.Text' or 'Data.Text.Lazy.Text', for example) through the+-- ("Data.Text.Text" or "Data.Text.Lazy.Text", for example) through the -- same polymorphic channel! This is a bit limiting, admittedly, but until -- I or the backend maintainers find out a way to ensure that type -- fingerprints match up per backend, be aware of this limitation.@@ -60,7 +60,7 @@ import Data.Binary import Data.Binary.Tagged.Internal import Data.ByteString.Lazy-import Data.Typeable.Internal+import Data.Typeable  -- | Encode data into a 'ByteString' with its type data tagged. --
Data/Binary/Tagged/Internal.hs view
@@ -1,10 +1,11 @@-{-# LANGUAGE DeriveGeneric      #-} {-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE NoImplicitPrelude  #-} {-# LANGUAGE OverloadedStrings  #-}  -- | -- Module      : Data.Binary.Tagged.Internal--- Copyright   : (c) Justin Le 2014+-- Copyright   : (c) Justin Le 2015 -- License     : MIT -- -- Maintainer  : justin@jle.im@@ -13,7 +14,7 @@ -- -- Internals for the library, exported in case you should need it. -- Usually, the parts you would need should be re-exported in--- 'Data.Binary.Tagged'.+-- "Data.Binary.Tagged". --  module Data.Binary.Tagged.Internal (@@ -31,15 +32,15 @@   , emptyTagFP      -- :: TagFingerprint   ) where -import Control.Applicative        ((<$>),(<*>))-import Control.Monad              (guard, forM_)+import Control.Monad hiding       (mapM_) import Data.Binary import Data.Binary.Get import Data.ByteString.Lazy.Char8 as LC import Data.Digest.Pure.MD5-import Data.Maybe                 (isJust)-import Data.Typeable.Internal+import Data.Maybe+import Data.Typeable import GHC.Generics+import Prelude.Compat   -- | A data type tupling together data with a 'TagFingerprint',
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2014 Justin Le+Copyright (c) 2015 Justin Le  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 
README.md view
@@ -1,6 +1,12 @@ tagged-binary ============= +[![tagged-binary on+Hackage](https://img.shields.io/hackage/v/tagged-binary.svg?maxAge=2592000)](https://hackage.haskell.org/package/tagged-binary)+[![tagged-binary on Stackage LTS](http://stackage.org/package/tagged-binary/badge/lts)](http://stackage.org/lts/package/tagged-binary)+[![tagged-binary on Stackage Nightly](http://stackage.org/package/tagged-binary/badge/nightly)](http://stackage.org/nightly/package/tagged-binary)+[![Build Status](https://travis-ci.org/mstksg/tagged-binary.svg?branch=master)](https://travis-ci.org/mstksg/tagged-binary)+ Very minimal (Haskell) library providing tools for serializing and decoding data into `ByteString` tagged with information about its type, inspired by Cloud Haskell and distributed-process.@@ -27,4 +33,4 @@ Copyright --------- -Copyright (c) 2014 Justin Le+Copyright (c) 2015 Justin Le
tagged-binary.cabal view
@@ -1,5 +1,5 @@ name:                tagged-binary-version:             0.2.0.0+version:             0.2.0.1 synopsis:            Provides tools for serializing data tagged with type                      information. description:         Very minimal library providing tools for serializing and@@ -34,7 +34,7 @@ license-file:        LICENSE author:              Justin Le <justin@jle.im> maintainer:          Justin Le <justin@jle.im>-copyright:           Copyright (c) Justin Le 2014+copyright:           Copyright (c) Justin Le 2015 category:            Data, Serialization  build-type:          Simple extra-source-files:  CHANGELOG.md@@ -51,6 +51,7 @@   -- other-modules:          -- other-extensions:       build-depends:       base         >= 4.6    && <5+                     , base-compat                      , binary       >= 0.7.1                      , bytestring   >= 0.10.4                      , pureMD5      >= 2.1