packages feed

bitstream 0.3.0.1 → 0.3.0.2

raw patch · 2 files changed

+28/−38 lines, 2 filesdep ~bytestringdep ~vectorPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: bytestring, vector

API changes (from Hackage documentation)

- Data.Bitstream: length :: Bitstream α => Num n => α -> n
+ Data.Bitstream: length :: (Bitstream α, Num n) => α -> n
- Data.Bitstream: toByteString :: forall d. (Bitstream (Bitstream d), Bitstream (Packet d)) => Bitstream d -> ByteString
+ Data.Bitstream: toByteString :: (Bitstream (Bitstream d), Bitstream (Packet d)) => Bitstream d -> ByteString
- Data.Bitstream.Fusion: genericDrop :: Integral n => n -> Bundle v α -> Bundle v α
+ Data.Bitstream.Fusion: genericDrop :: forall n (v :: Type -> Type) α. Integral n => n -> Bundle v α -> Bundle v α
- Data.Bitstream.Fusion: genericFindIndex :: Integral n => (α -> Bool) -> Bundle v α -> Maybe n
+ Data.Bitstream.Fusion: genericFindIndex :: forall n α (v :: Type -> Type). Integral n => (α -> Bool) -> Bundle v α -> Maybe n
- Data.Bitstream.Fusion: genericIndex :: (Integral n, Show n) => Bundle v α -> n -> α
+ Data.Bitstream.Fusion: genericIndex :: forall n (v :: Type -> Type) α. (Integral n, Show n) => Bundle v α -> n -> α
- Data.Bitstream.Fusion: genericIndexed :: Integral n => Bundle v α -> Bundle v (n, α)
+ Data.Bitstream.Fusion: genericIndexed :: forall n (v :: Type -> Type) α. Integral n => Bundle v α -> Bundle v (n, α)
- Data.Bitstream.Fusion: genericLength :: Num n => Bundle v α -> n
+ Data.Bitstream.Fusion: genericLength :: forall n (v :: Type -> Type) α. Num n => Bundle v α -> n
- Data.Bitstream.Fusion: genericReplicate :: Integral n => n -> α -> Bundle v α
+ Data.Bitstream.Fusion: genericReplicate :: forall n α (v :: Type -> Type). Integral n => n -> α -> Bundle v α
- Data.Bitstream.Fusion: genericTake :: Integral n => n -> Bundle v α -> Bundle v α
+ Data.Bitstream.Fusion: genericTake :: forall n (v :: Type -> Type) α. Integral n => n -> Bundle v α -> Bundle v α
- Data.Bitstream.Fusion: genericUnfoldrN :: Integral n => n -> (β -> Maybe (α, β)) -> β -> Bundle v α
+ Data.Bitstream.Fusion: genericUnfoldrN :: forall n β α (v :: Type -> Type). Integral n => n -> (β -> Maybe (α, β)) -> β -> Bundle v α
- Data.Bitstream.Fusion.Monadic: genericDrop :: (Monad m, Integral n) => n -> Stream m α -> Stream m α
+ Data.Bitstream.Fusion.Monadic: genericDrop :: forall (m :: Type -> Type) n α. (Monad m, Integral n) => n -> Stream m α -> Stream m α
- Data.Bitstream.Fusion.Monadic: genericIndex :: (Monad m, Integral n, Show n) => Stream m α -> n -> m α
+ Data.Bitstream.Fusion.Monadic: genericIndex :: (MonadFail m, Monad m, Integral n, Show n) => Stream m α -> n -> m α
- Data.Bitstream.Fusion.Monadic: genericIndexed :: (Monad m, Integral n) => Stream m α -> Stream m (n, α)
+ Data.Bitstream.Fusion.Monadic: genericIndexed :: forall (m :: Type -> Type) n α. (Monad m, Integral n) => Stream m α -> Stream m (n, α)
- Data.Bitstream.Fusion.Monadic: genericReplicate :: (Monad m, Integral n) => n -> α -> Stream m α
+ Data.Bitstream.Fusion.Monadic: genericReplicate :: forall (m :: Type -> Type) n α. (Monad m, Integral n) => n -> α -> Stream m α
- Data.Bitstream.Fusion.Monadic: genericTake :: (Monad m, Integral n) => n -> Stream m α -> Stream m α
+ Data.Bitstream.Fusion.Monadic: genericTake :: forall (m :: Type -> Type) n α. (Monad m, Integral n) => n -> Stream m α -> Stream m α
- Data.Bitstream.Fusion.Monadic: genericUnfoldrN :: (Monad m, Integral n) => n -> (β -> Maybe (α, β)) -> β -> Stream m α
+ Data.Bitstream.Fusion.Monadic: genericUnfoldrN :: forall (m :: Type -> Type) n β α. (Monad m, Integral n) => n -> (β -> Maybe (α, β)) -> β -> Stream m α
- Data.Bitstream.Generic: length :: Bitstream α => Num n => α -> n
+ Data.Bitstream.Generic: length :: (Bitstream α, Num n) => α -> n
- Data.Bitstream.Lazy: length :: Bitstream α => Num n => α -> n
+ Data.Bitstream.Lazy: length :: (Bitstream α, Num n) => α -> n

Files

Data/Bitstream/Fusion/Monadic.hs view
@@ -24,7 +24,7 @@ #else import Data.Vector.Fusion.Stream.Size #endif-import Prelude hiding ((!!), drop, replicate, take)+import Prelude hiding ((!!), drop, replicate, take, foldl') import Prelude.Unicode  genericLength ∷ (Monad m, Num n) ⇒ Stream m α → m n
bitstream.cabal view
@@ -1,3 +1,4 @@+cabal-version: 3.0 Name: bitstream Synopsis: Fast, packed, strict and lazy bit streams with stream fusion Description:@@ -6,8 +7,8 @@         fusion. This is like @bytestring@ but stores bits instead of         bytes. -Version: 0.3.0.1-License: PublicDomain+Version: 0.3.0.2+License: CC0-1.0 License-File: COPYING Author: PHO <pho at cielonegro dot org> Maintainer: PHO <pho at cielonegro dot org>@@ -16,28 +17,33 @@ Bug-Reports: https://github.com/phonohawk/bitstream/issues Category: Data Tested-With: GHC == 7.6.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.2-Cabal-Version: >= 1.10 Build-Type: Simple Extra-Source-Files:     AUTHORS     COPYING     ChangeLog -Source-Repository head-    Type: git-    Location: git://github.com/phonohawk/bitstream.git--Library+common shared     Build-Depends:         base                 == 4.*,         base-unicode-symbols == 0.2.*,-        bytestring           >= 0.9 && < 0.11,-        vector               >= 0.10 && < 0.13-+        bytestring           >= 0.9 && < 0.13,+        vector               >= 0.10 && < 0.14     if !impl(ghc >= 8.0)         Build-Depends:             bifunctors >= 4.1+    GHC-Options:+        -Wall+    Default-Language: Haskell2010 +Source-Repository head+    Type: git+    Location: https://github.com/phonohawk/bitstream.git++Library+    import:+      shared+     Exposed-Modules:         Data.Bitstream         Data.Bitstream.Fusion@@ -49,46 +55,30 @@     Other-Modules:         Data.Bitstream.Internal -    Default-Language:-         Haskell2010--    GHC-Options:-        -Wall- Test-Suite test-strict-bitstream+    import:+      shared+     Type:    exitcode-stdio-1.0     Main-Is: Test/Bitstream.hs     Other-Modules:         Test.Bitstream.Utils     Build-Depends:         QuickCheck           >= 2.5,-        base                 == 4.*,-        base-unicode-symbols == 0.2.*,-        bitstream,-        bytestring           >= 0.9 && < 0.11,-        vector               >= 0.10 && < 0.13-    if !impl(ghc >= 8.0)-        Build-Depends:-            bifunctors >= 4.1-    Default-Language: Haskell2010+        bitstream     GHC-Options:-        -Wall -fno-warn-orphans+        -fno-warn-orphans  Test-Suite test-lazy-bitstream+    import:+      shared+     Type:    exitcode-stdio-1.0     Main-Is: Test/Bitstream/Lazy.hs     Other-Modules:         Test.Bitstream.Utils     Build-Depends:         QuickCheck           >= 2.5,-        base                 == 4.*,-        base-unicode-symbols == 0.2.*,-        bitstream,-        bytestring           >= 0.9 && < 0.11,-        vector               >= 0.10 && < 0.13-    if !impl(ghc >= 8.0)-        Build-Depends:-            bifunctors >= 4.1-    Default-Language: Haskell2010+        bitstream     GHC-Options:-        -Wall -fno-warn-orphans+        -fno-warn-orphans