From 96d08d3085726309762b1e214d6968033c3c552d Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 7 Jul 2019 17:35:45 -0700 Subject: [PATCH 04/12] gnu: Add ghc-storablevector. * gnu/packages/haskell.scm (ghc-storablevector): New variable. --- gnu/packages/haskell.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 0b9951bebd..2cc490eade 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -2758,6 +2758,43 @@ 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))) + (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