From 42325a8183404c5a497b8f1d81c9db3c17b3d8b1 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 7 Jul 2019 17:35:45 -0700 Subject: [PATCH 05/13] gnu: Add ghc-storablevector. --- gnu/packages/haskell.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 7126d7a6de..bb3c55070b 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -2835,6 +2835,44 @@ by the event-list package.") computation with an IO base.") (license license:bsd-3))) +(define-public ghc-storablevector + (package + (name "ghc-storablevector") + (version "0.2.13") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://hackage.haskell.org/package/storablevector/storablevector-" + version ".tar.gz")) + (sha256 + (base32 + "1zmr738vwnhnyxbikayqnaz31ilv2qlmscp6iqgl7adcfbal4dzq")))) + (build-system haskell-build-system) + (inputs + `(("ghc-non-negative" ,ghc-non-negative) + ("ghc-utility-ht" ,ghc-utility-ht) + ("ghc-semigroups" ,ghc-semigroups) + ("ghc-unsafe" ,ghc-unsafe) + ("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-syb" ,ghc-syb))) + (arguments `(#:tests? #f)) + (home-page "https://www.haskell.org/haskellwiki/Storable_Vector") + (synopsis "Fast, packed, strict storable arrays with a list interface") + (description + "Fast, packed, strict storable arrays with a list interface, a chunky +lazy list interface with variable chunk size and an interface for write +access via the ST monad. This is much like bytestring and binary but can be +used for every @code{Foreign.Storable.Storable} type. See also package with a +similar intention at http://hackage.haskell.org/package/vector. + +We do not provide advanced fusion optimization, since especially for lazy +vectors this would either be incorrect or not applicable. However we provide +fusion with lazy lists in the package +http://hackage.haskell.org/package/storablevector-streamfusion.") + (license license:bsd-3))) + (define-public ghc-transformers-compat (package (name "ghc-transformers-compat") -- 2.22.0