[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#44174] [PATCH 08/16] gnu: Add ghc-text-short.
From: |
Carlo Holl |
Subject: |
[bug#44174] [PATCH 08/16] gnu: Add ghc-text-short. |
Date: |
Fri, 23 Oct 2020 10:05:36 -0700 |
---
gnu/packages/haskell-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index e831c12160..c4a8d4c208 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -8924,6 +8924,47 @@ 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")
--
2.28.0
- [bug#44174] [PATCH 00/16] Add hledger and its dependencies., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 01/16] gnu: Add ghc-control-monad-free., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 02/16] gnu: Add ghc-csv., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 03/16] gnu: Add ghc-decimal., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 05/16] gnu: Add ghc-hspec-megaparsec., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 04/16] gnu: Upgrade ghc-doctest., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 08/16] gnu: Add ghc-text-short.,
Carlo Holl <=
- [bug#44174] [PATCH 06/16] gnu: Add ghc-lucid., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 07/16] gnu: Add ghc-only., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 09/16] gnu: Add ghc-tabular., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 11/16] gnu: Add ghc-wizards., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 15/16] gnu: Add hledger., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 10/16] gnu: Add ghc-uglymemo., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 14/16] gnu: Add ghc-hledger-lib., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 12/16] gnu: Add ghc-cassava., Carlo Holl, 2020/10/23
- [bug#44174] [PATCH 13/16] gnu: Add ghc-cassava-megaparsec., Carlo Holl, 2020/10/23