Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

vector-binary-instances layout

  • Loading branch information...
commit a37c9842182516b1edc0a30d5ddccfd962f68f45 1 parent 593553d
Alexander Vershilov authored May 03, 2013
1  dev-haskell/statistics/Manifest
... ...
@@ -1 +1,2 @@
1 1
 DIST statistics-0.10.3.1.tar.gz 63082 SHA256 1a98a923c37850b16d85e1a6bb0dc315068241d58c736032b314c7ac3b764b89 SHA512 f7145b52eef5fb7fe4b915a4bb836883ef26858fdd6cf1a3f4056ae09bc1ffbdf796c0a1ed03b160c6cbf6f4782ddeca7129cf4849ef05380884da565c8fbc9e WHIRLPOOL 61af7bd89e122a93d833df3515a0fe99a69e0f48f3ee31068b8df37491c0f0ddffca4b74be15ab2a8f69dedcb73a6ffd1b13699993dc08ed5c5ac7a8ac0762f3
  2
+DIST statistics-0.10.4.1.tar.gz 63039 SHA256 21e237b458de40c090f51924a93f339e15ce54dcaec2176d4b70fcc990fda34d SHA512 e3992dc067d5f2a6628e39ad2a341cc61cf63aff0fe087a7672f14aaac888fb7f8dd611ed17263489682da4f6f71889c53637f4db40a2ba0305f6edfde9f2035 WHIRLPOOL a8f2f536c8d8ee85869f104d14d3db3887b5ffa11b01c6723e1873ae202b674c57f0830682d2a6d6e60cac8d7cd275b3e6840310c062cf877f58cc53e716c16c
1  dev-haskell/vector-binary-instances/Manifest
... ...
@@ -0,0 +1 @@
  1
+DIST vector-binary-instances-0.2.1.0.tar.gz 3114 SHA256 9450018a61ee5a62b802c1b2cfe8d289b7c8f3debeb0f8828679a4c085d31909 SHA512 37955552fc7ea24f35760f8e791d115329591ac720f66bc94db172cf609c67b51d8f075cdcda96e3fcbf9f4fd566557ebdeb306d86e7512e8acf526d691b4ff7 WHIRLPOOL 3e5564bab5b6ff3a0e13cbb6f918772c56cced118410928e194131ee53c7f1032890d90b458891356512a8bfba44fa614c38608cb2458b32a0f1246add6fef73
28  dev-haskell/vector-binary-instances/metadata.xml
... ...
@@ -0,0 +1,28 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
  3
+<pkgmetadata>
  4
+	<herd>haskell</herd>
  5
+	<maintainer>
  6
+		<email>haskell@gentoo.org</email>
  7
+	</maintainer>
  8
+	<longdescription>
  9
+		Instances for Binary for the types defined in the vector package,
  10
+		making it easy to serialize vectors to and from disk. We use the
  11
+		generic interface to vectors, so all vector types are supported.
  12
+		Specific instances are provided for unboxed, boxed and storable
  13
+		vectors.
  14
+		
  15
+		To serialize a vector:
  16
+		
  17
+		&gt; *Data.Vector.Binary&gt; let v = Data.Vector.fromList [1..10]
  18
+		&gt; *Data.Vector.Binary&gt; v
  19
+		&gt; fromList [1,2,3,4,5,6,7,8,9,10] :: Data.Vector.Vector
  20
+		&gt; *Data.Vector.Binary&gt; encode v
  21
+		&gt; Chunk &quot;\NUL\NUL\NUL\NUL\NUL...\NUL\NUL\NUL\t\NUL\NUL\NUL\NUL\n&quot; Empty
  22
+		
  23
+		Which you can in turn compress before writing to disk:
  24
+		
  25
+		&gt; compress . encode $ v
  26
+		&gt; Chunk &quot;\US\139\b\NUL\NUL\N...\229\240,\254:\NUL\NUL\NUL&quot; Empty
  27
+	</longdescription>
  28
+</pkgmetadata>
26  dev-haskell/vector-binary-instances/vector-binary-instances-0.2.1.0.ebuild
... ...
@@ -0,0 +1,26 @@
  1
+# Copyright 1999-2013 Gentoo Foundation
  2
+# Distributed under the terms of the GNU General Public License v2
  3
+# $Header: $
  4
+
  5
+EAPI=5
  6
+
  7
+# ebuild generated by hackport 0.3.2.9999
  8
+
  9
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
  10
+inherit haskell-cabal
  11
+
  12
+DESCRIPTION="Instances of Data.Binary and Data.Serialize for vector"
  13
+HOMEPAGE="https://github.com/bos/vector-binary-instances"
  14
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
  15
+
  16
+LICENSE="BSD"
  17
+SLOT="0/${PV}"
  18
+KEYWORDS="~amd64 ~x86"
  19
+IUSE=""
  20
+
  21
+RDEPEND="dev-haskell/binary:=[profile?]
  22
+		dev-haskell/cereal:=[profile?]
  23
+		>=dev-haskell/vector-0.6:=[profile?]
  24
+		>=dev-lang/ghc-6.10.4:="
  25
+DEPEND="${RDEPEND}
  26
+		>=dev-haskell/cabal-1.6"

0 notes on commit a37c984

Please sign in to comment.
Something went wrong with that request. Please try again.