[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/15: gnu: Add ghc-text-short.
From: |
guix-commits |
Subject: |
08/15: gnu: Add ghc-text-short. |
Date: |
Sun, 1 Nov 2020 08:36:12 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit aeb94a1fad3a648c4007706521a2e5eef28bbc6f
Author: Carlo Holl <carloholl@gmail.com>
AuthorDate: Sat Oct 31 19:02:29 2020 -0700
gnu: Add ghc-text-short.
* gnu/packages/haskell-xyz.scm (ghc-text-short): New variable.
---
gnu/packages/haskell-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 0412ebd..cb24940 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -8911,6 +8911,45 @@ require aeson
(description "Safe conversions between textual types")
(license license:isc)))
+(define-public ghc-text-short
+ (package
+ (name "ghc-text-short")
+ (version "0.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/text-short/text-short-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0xyrxlb602z8bc9sr2y1fag0x56a20yj5qrkvy7iwc6hnznrynxz"))))
+ (build-system haskell-build-system)
+ (inputs `(("ghc-hashable" ,ghc-hashable)))
+ (native-inputs
+ `(("ghc-tasty" ,ghc-tasty)
+ ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
+ ("ghc-tasty-hunit" ,ghc-tasty-hunit)
+ ("ghc-quickcheck-instances"
+ ,ghc-quickcheck-instances)))
+ (arguments
+ `(#:cabal-revision
+ ("2"
+ "17cb7p0qywf2dsrq3g8qb3ssknd9wl5k0nc2pxz9gc3l8rxpkw51")))
+ (home-page "https://hackage.haskell.org/package/text-short")
+ (synopsis "Memory-efficient representation of Unicode text strings")
+ (description "This package provides the @code{ShortText} type which
+is suitable for keeping many short strings in memory. This is similiar
+to how @code{ShortByteString} relates to @code{ByteString}.
+
+The main difference between @code{Text} and @code{ShortText} is that
+@code{ShortText} uses UTF-8 instead of UTF-16 internally and also doesn't
+support zero-copy slicing (thereby saving 2 words). Consequently, the memory
+footprint of a (boxed) @{ShortText} value is 4 words (2 words when unboxed)
+plus the length of the UTF-8 encoded payload.")
+ (license license:bsd-3)))
+
(define-public ghc-doclayout
(package
(name "ghc-doclayout")
- 01/15: gnu: Add ghc-control-monad-free., (continued)
- 01/15: gnu: Add ghc-control-monad-free., guix-commits, 2020/11/01
- 07/15: gnu: Add ghc-only., guix-commits, 2020/11/01
- 06/15: gnu: Add ghc-lucid., guix-commits, 2020/11/01
- 13/15: gnu: Add ghc-cassava-megaparsec., guix-commits, 2020/11/01
- 11/15: gnu: Add ghc-wizards., guix-commits, 2020/11/01
- 03/15: gnu: Add ghc-decimal., guix-commits, 2020/11/01
- 05/15: gnu: Add ghc-hspec-megaparsec., guix-commits, 2020/11/01
- 04/15: gnu: ghc-doctest: Update to 0.16.3., guix-commits, 2020/11/01
- 09/15: gnu: Add ghc-tabular., guix-commits, 2020/11/01
- 14/15: gnu: Add ghc-hledger-lib., guix-commits, 2020/11/01
- 08/15: gnu: Add ghc-text-short.,
guix-commits <=
- 12/15: gnu: Add ghc-cassava., guix-commits, 2020/11/01
- 10/15: gnu: Add ghc-uglymemo., guix-commits, 2020/11/01
- 15/15: gnu: Add hledger., guix-commits, 2020/11/01