update to 0.2.4

This commit is contained in:
Jens Petersen 2018-07-22 23:35:55 +09:00
parent 50ded229fb
commit cff2e34747
4 changed files with 94 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/vector-binary-instances-0.2.3.2.tar.gz
/vector-binary-instances-0.2.3.4.tar.gz
/vector-binary-instances-0.2.3.5.tar.gz
/vector-binary-instances-0.2.4.tar.gz

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.1
# generated by cabal-rpm-0.12.5
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name vector-binary-instances
@ -7,13 +7,14 @@
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.2.3.5
Release: 3%{?dist}
Version: 0.2.4
Release: 1%{?dist}
Summary: Binary and Serialize instances for vector
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
@ -51,6 +52,7 @@ development files.
%prep
%setup -q -n %{pkgver}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
@ -81,6 +83,9 @@ development files.
%changelog
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 0.2.4-1
- update to 0.2.4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (vector-binary-instances-0.2.3.5.tar.gz) = d330acf7911e017581bbae3e429371f5f336c45194f5574bae8d677253b96a430ee40b4ad0327e6bd7f11cd7cd49e29875e4901fa8b9c54e52892c59558ce413
SHA512 (vector-binary-instances-0.2.4.tar.gz) = a01b7c279fed49bd82d40bb1ef4f552161347aab4853db04e7f412f684095aecdf93be2050f1c712357a85f002b3735a394b946d9875a6aa5045d7eeede9a240

View File

@ -0,0 +1,84 @@
Name: vector-binary-instances
Version: 0.2.4
x-revision: 1
Synopsis: Instances of Data.Binary and Data.Serialize for vector
Description:
Instances for Binary for the types defined in the vector package,
making it easy to serialize vectors to and from disk. We use the
generic interface to vectors, so all vector types are supported.
Specific instances are provided for unboxed, boxed and storable
vectors.
.
To serialize a vector:
.
> *Data.Vector.Binary> let v = Data.Vector.fromList [1..10]
> *Data.Vector.Binary> v
> fromList [1,2,3,4,5,6,7,8,9,10] :: Data.Vector.Vector
> *Data.Vector.Binary> encode v
> Chunk "\NUL\NUL\NUL\NUL\NUL...\NUL\NUL\NUL\t\NUL\NUL\NUL\NUL\n" Empty
.
Which you can in turn compress before writing to disk:
.
> compress . encode $ v
> Chunk "\US\139\b\NUL\NUL\N...\229\240,\254:\NUL\NUL\NUL" Empty
-- URL for the project homepage or repository.
Homepage: https://github.com/bos/vector-binary-instances
bug-reports: https://github.com/bos/vector-binary-instances/issues
License: BSD3
License-file: LICENSE
Author: Don Stewart
Maintainer: dons00@gmail.com, bos@serpentine.com, Ben Gamari <ben@smart-cactus.org>
Tested-With: GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
-- A copyright notice.
-- Copyright:
-- Stability of the pakcage (experimental, provisional, stable...)
Stability: Experimental
Category: Data
Build-type: Simple
-- Constraint on the version of Cabal needed to build this package.
Cabal-version: >=1.8
Library
Ghc-options: -Wall
-- Modules exported by the library.
Exposed-modules:
Data.Vector.Binary
-- Packages needed in order to build this package.
Build-depends:
base > 3 && < 4.12,
vector >= 0.6 && < 0.13,
binary >= 0.5 && < 0.10
Benchmark benchmarks
Type: exitcode-stdio-1.0
Main-is: Benchmarks.hs
Build-depends:
base,
vector-binary-instances,
vector,
bytestring,
binary,
criterion,
deepseq
hs-source-dirs: benchmarks
Test-Suite tests
Type: exitcode-stdio-1.0
Main-is: test/Main.hs
Build-depends:
base,
vector-binary-instances,
vector,
binary,
tasty,
tasty-quickcheck
source-repository head
type: git
location: https://github.com/bos/vector-binary-instances