packages feed

binary-list 1.0.1.0 → 1.1.0.0

raw patch · 2 files changed

+13/−15 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Data.BinaryList: instance Foldable BinList
- Data.BinaryList: instance Functor BinList
- Data.BinaryList: instance Show a => Show (BinList a)
- Data.BinaryList: instance Traversable BinList
- Data.BinaryList: length :: BinList a -> Int
- Data.BinaryList.Serialize: decData :: DecodedBinList a -> Decoded a
- Data.BinaryList.Serialize: decDirection :: DecodedBinList a -> Direction
- Data.BinaryList.Serialize: decLength :: DecodedBinList a -> Exponent
- Data.BinaryList.Serialize: encData :: EncodedBinList -> ByteString
- Data.BinaryList.Serialize: encDirection :: EncodedBinList -> Direction
- Data.BinaryList.Serialize: encLength :: EncodedBinList -> Exponent
- Data.BinaryList.Serialize: instance Eq Direction
- Data.BinaryList.Serialize: instance NFData a => NFData (Decoded a)
- Data.BinaryList.Serialize: instance Show Direction
- Data.BinaryList.Serialize: instance Show a => Show (Decoded a)
+ Data.BinaryList: instance Data.Foldable.Foldable Data.BinaryList.Internal.BinList
+ Data.BinaryList: instance Data.Traversable.Traversable Data.BinaryList.Internal.BinList
+ Data.BinaryList: instance GHC.Base.Functor Data.BinaryList.Internal.BinList
+ Data.BinaryList: instance GHC.Show.Show a => GHC.Show.Show (Data.BinaryList.Internal.BinList a)
+ Data.BinaryList.Serialize: [decData] :: DecodedBinList a -> Decoded a
+ Data.BinaryList.Serialize: [decDirection] :: DecodedBinList a -> Direction
+ Data.BinaryList.Serialize: [decLength] :: DecodedBinList a -> Exponent
+ Data.BinaryList.Serialize: [encData] :: EncodedBinList -> ByteString
+ Data.BinaryList.Serialize: [encDirection] :: EncodedBinList -> Direction
+ Data.BinaryList.Serialize: [encLength] :: EncodedBinList -> Exponent
+ Data.BinaryList.Serialize: instance Control.DeepSeq.NFData a => Control.DeepSeq.NFData (Data.BinaryList.Serialize.Decoded a)
+ Data.BinaryList.Serialize: instance GHC.Classes.Eq Data.BinaryList.Serialize.Direction
+ Data.BinaryList.Serialize: instance GHC.Show.Show Data.BinaryList.Serialize.Direction
+ Data.BinaryList.Serialize: instance GHC.Show.Show a => GHC.Show.Show (Data.BinaryList.Serialize.Decoded a)

Files

Data/BinaryList.hs view
@@ -44,7 +44,6 @@   , generateM     -- * Queries   , lengthExponent-  , length   , lookup   , head   , last@@ -75,19 +74,18 @@     -- $fft   ) where -import Prelude hiding ( length,lookup,replicate,head,last-                      , zip,unzip,zipWith,reverse,foldr1-                      , take,map,foldr )-import qualified Prelude+import Prelude hiding+  ( map, head, last+  , reverse, replicate+  , take, lookup+  , zip, unzip, zipWith+    )+import Data.Foldable (fold,toList) import Foreign.Storable (sizeOf) import Data.List (find) import Data.BinaryList.Internal-import Control.Applicative (Applicative (..),(<$>)) import Control.Applicative.Backwards import Control.Arrow ((***))-import Data.Monoid (mappend)-import Data.Foldable (Foldable (..),toList)-import Data.Traversable (Traversable (..)) import Control.Monad.Trans.State   ( StateT (..)   , evalStateT ,evalState@@ -113,10 +111,6 @@ lengthExponent (ListNode n _ _) = n lengthExponent (ListEnd _) = 0 --- | /O(1)/. Number of elements in the list.-length :: BinList a -> Int-length = (2^) . lengthExponent- {-# RULES        "Data.BinaryList: length equality"          forall xs ys . length xs == length ys = lengthExponent xs == lengthExponent ys@@ -547,6 +541,7 @@   fold = foldr1 mappend   foldl1 = foldr1   foldMap f = fold . fmap f+  length = (2^) . lengthExponent  instance Traversable BinList where   sequenceA (ListEnd f) = ListEnd <$> f
binary-list.cabal view
@@ -1,5 +1,5 @@ name:                binary-list-version:             1.0.1.0+version:             1.1.0.0 synopsis:            Lists of length a power of two. description:         Implementation of lists whose number of elements is a                      power of two. Binary lists have this property by definition,@@ -16,6 +16,9 @@                      .                      The package contains an additional module with utilities for                      the (de)serialization of binary lists.+                     .+                     /Warning: to use this version, you need at least GHC-7.10. I will submit/+                     /a new version with backwards compatibility very soon. Stay tuned!/ license:             BSD3 license-file:        LICENSE author:              Daniel Díaz@@ -23,7 +26,7 @@ bug-reports:         https://github.com/Daniel-Diaz/binary-list/issues category:            Data build-type:          Simple-cabal-version:       >=1.10+cabal-version:       >= 1.10  library   exposed-modules:     Data.BinaryList, Data.BinaryList.Serialize