diff --git a/ghc-text-short.spec b/ghc-text-short.spec index 1df569c73b71cbdce19519a136d5c6e0637f5f97..703b593676a3ed2547ab4750df245c8b048ccc9b 100644 --- a/ghc-text-short.spec +++ b/ghc-text-short.spec @@ -3,7 +3,7 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.1.5 +Version: 0.1.6 Release: 1 Summary: Memory-efficient representation of Unicode text strings License: BSD-3-Clause @@ -35,7 +35,6 @@ BuildRequires: ghc-tasty-prof BuildRequires: ghc-tasty-quickcheck-devel BuildRequires: ghc-tasty-quickcheck-prof %endif - %description This package provides the 'ShortText' type which is suitable for keeping many short strings in memory. This is similiar to how 'ShortByteString' relates to @@ -103,5 +102,10 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files %changelog +* Wed Dec 04 2024 yangxudong 0.1.6-1 +- Update package to version 0.1.6 +- Drop support for GHC prior 8.6.5 +- Support GHC-9.10 (base-4.21) + * Tue Aug 22 2023 Lin Runze 0.1.5-1 - Initial packaging (Version 0.1.5) diff --git a/text-short-0.1.5.tar.gz b/text-short-0.1.5.tar.gz deleted file mode 100644 index 2280aaf34387aa57987ff40cca646f72716c8436..0000000000000000000000000000000000000000 Binary files a/text-short-0.1.5.tar.gz and /dev/null differ diff --git a/text-short-0.1.6.tar.gz b/text-short-0.1.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..56d1b1dcea5eaeec01de51024fd80b768f83de7d Binary files /dev/null and b/text-short-0.1.6.tar.gz differ diff --git a/text-short.cabal b/text-short.cabal index 57759f990594ef41b2a3d0d6f11fabb928f4f66a..b10356d105657bfca65fda8b6c9f10e16159c5ed 100644 --- a/text-short.cabal +++ b/text-short.cabal @@ -1,123 +1,3733 @@ -cabal-version: 1.18 -name: text-short -version: 0.1.5 -x-revision: 3 -synopsis: Memory-efficient representation of Unicode text strings -license: BSD3 -license-file: LICENSE -author: Herbert Valerio Riedel -maintainer: hvr@gnu.org -bug-reports: https://github.com/hvr/text-short/issues -category: Data -build-type: Simple -description: - This package provides the 'ShortText' type which is suitable for keeping many short strings in memory. This is similiar to how 'ShortByteString' relates to 'ByteString'. - . - The main difference between 'Text' and 'ShortText' is that 'ShortText' doesn't support zero-copy slicing (thereby saving 2 words), and, compared to text-1.*, that it uses UTF-8 instead of UTF-16 internally. 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. - -tested-with: - GHC ==7.8.4 - || ==7.10.3 - || ==8.0.2 - || ==8.2.2 - || ==8.4.4 - || ==8.6.5 - || ==8.8.3 - || ==8.10.7 - || ==9.0.2 - || ==9.2.8 - || ==9.4.7 - || ==9.6.3 - || ==9.8.1 - -extra-source-files: ChangeLog.md - -source-repository head - type: git - location: https://github.com/hvr/text-short.git - -flag asserts - description: Enable runtime-checks via @assert@ - default: False - manual: True - -library - exposed-modules: - Data.Text.Short - Data.Text.Short.Partial - Data.Text.Short.Unsafe - - other-modules: Data.Text.Short.Internal - build-depends: - base >=4.7 && <4.20 - , binary >=0.7.1 && <0.9 - , bytestring >=0.10.4 && <0.13 - , deepseq >=1.3 && <1.6 - , ghc-prim >=0.3.1 && <0.12 - , hashable >=1.2.6 && <1.5 - , template-haskell >=2.9.0.0 && <2.22 - , text >=1.0 && <1.3 || >=2.0 && <2.2 - - if impl(ghc >=8.0) - build-depends: bytestring >=0.10.8.0 - - if !impl(ghc >=8.0) - build-depends: semigroups >=0.18.2 && <0.21 - - -- GHC version specific PrimOps - if impl(ghc >=8.4) - hs-source-dirs: src-ghc804 - - else - c-sources: cbits/memcmp.c - hs-source-dirs: src-ghc708 - - other-modules: PrimOps - hs-source-dirs: src - default-language: Haskell2010 - other-extensions: - CPP - GeneralizedNewtypeDeriving - MagicHash - Trustworthy - UnliftedFFITypes - Unsafe - - if impl(ghc >=8) - other-extensions: TemplateHaskellQuotes - - else - other-extensions: TemplateHaskell - - c-sources: cbits/cbits.c - - if flag(asserts) - ghc-options: -fno-ignore-asserts - - else - cc-options: -DNDEBUG=1 - - ghc-options: -Wall - cc-options: -Wall - -test-suite tests - type: exitcode-stdio-1.0 - hs-source-dirs: src-test - main-is: Tests.hs - - -- bytestring dependency for cabal_macros.h - build-depends: - base - , binary - , bytestring - , template-haskell - , text - , text-short - - -- deps which don't inherit constraints from library stanza: - build-depends: - tasty >=1.4 && <1.6 - , tasty-hunit >=0.10.0 && <0.11 - , tasty-quickcheck >=0.10 && <0.11 - - default-language: Haskell2010 + + + +text-short.cabal · yxud/ghc-text-short - Gitee.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ + + + +
+
+
+
+
+
+ + +
+ + + +
+
+
+ + +
+
+ +
+
+
+ + + + + + + + + +1 + + + +Star +0 + + + +Fork +2 + +
+

+ yxud/ghc-text-short + + +

+
+
+forked from src-openEuler/ghc-text-short  +
+
+
+ + + + + + + + + +
+
+
+
+
+加入 Gitee +
+
+与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) +
+免费加入 + +
+
+ + +
+ +
+
+ +
+
+
+
+ +
+文件 +
+
+
+
+ + + + + +
+ + + +
+ + + + +
+
+
+ + + + + + + + +
+
+
+ + + + + +
+
+
+
+
+
+
+该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。 + + +
+ +
+
+ +
+ +
+
+ +
+
+克隆/下载 + +
+ + + + +
+
+
+
+ + + + + +
+ + + +
+ + + + +
+ + +
+ + + + + + +
+
+
+
+
+
+ + +text-short.cabal + +2.75 KB +
+
+ +一键复制 +编辑 +原始数据 +按行查看 +历史 +
+ + + +
+
+
+
+
+yxud +提交于 + +2024-12-04 14:25 +08:00 + +. +Update package to version 0.1.6 + +
+
+
+
+
+
cabal-version: 1.18
name: text-short
version: 0.1.6
x-revision: 2
synopsis: Memory-efficient representation of Unicode text strings
license: BSD3
license-file: LICENSE
author: Herbert Valerio Riedel
maintainer: hvr@gnu.org
bug-reports: https://github.com/hvr/text-short/issues
category: Data
build-type: Simple
description:
This package provides the 'ShortText' type which is suitable for keeping many short strings in memory. This is similiar to how 'ShortByteString' relates to 'ByteString'.
.
The main difference between 'Text' and 'ShortText' is that 'ShortText' doesn't support zero-copy slicing (thereby saving 2 words), and, compared to text-1.*, that it uses UTF-8 instead of UTF-16 internally. 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.
tested-with:
GHC ==8.6.5
|| ==8.8.3
|| ==8.10.7
|| ==9.0.2
|| ==9.2.8
|| ==9.4.8
|| ==9.6.5
|| ==9.8.2
|| ==9.10.1
extra-source-files: ChangeLog.md
source-repository head
type: git
location: https://github.com/hvr/text-short.git
flag asserts
description: Enable runtime-checks via @assert@
default: False
manual: True
library
exposed-modules:
Data.Text.Short
Data.Text.Short.Partial
Data.Text.Short.Unsafe
other-modules: Data.Text.Short.Internal
build-depends:
base >=4.12 && <4.21
, binary >=0.8.6.0 && <0.9
, bytestring >=0.10.8.2 && <0.13
, deepseq >=1.4.4.0 && <1.6
, ghc-prim >=0.5.3 && <0.12
, hashable >=1.4.4.0 && <1.6
, template-haskell >=2.14.0.0 && <2.23
, text >=1.2.3.1 && <1.3 || >=2.0 && <2.2
other-modules: PrimOps
hs-source-dirs: src src-ghc804
default-language: Haskell2010
other-extensions:
CPP
GeneralizedNewtypeDeriving
MagicHash
TemplateHaskellQuotes
Trustworthy
UnliftedFFITypes
Unsafe
c-sources: cbits/cbits.c
if flag(asserts)
ghc-options: -fno-ignore-asserts
else
cc-options: -DNDEBUG=1
ghc-options: -Wall
cc-options: -Wall
test-suite text-short-tests
type: exitcode-stdio-1.0
hs-source-dirs: src-test
main-is: Tests.hs
-- bytestring dependency for cabal_macros.h
build-depends:
base
, binary
, bytestring
, template-haskell
, text
, text-short
-- deps which don't inherit constraints from library stanza:
build-depends:
tasty >=1.4 && <1.6
, tasty-hunit >=0.10.0 && <0.11
, tasty-quickcheck >=0.10 && <0.12
default-language: Haskell2010
+
+ + +
+
+
+
Loading...
+
+
+
+ + +
+ + + + + + + +
+ + +
+
+
+ +
+
+
+ +马建仓 AI 助手 +
+
+ +
+
+
+
+
+
+
+
+
+
尝试更多
+
+
代码解读
+
+
+
代码找茬
+
+
+
代码优化
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + +
+
+
+ + + + + + +
+ + + + +
+
+
1
+
https://gitee.com/yxud/ghc-text-short.git
+
git@gitee.com:yxud/ghc-text-short.git
+
yxud
+
ghc-text-short
+
ghc-text-short
+
2d0931ab740502b52106bb219e513d4efd83298a
+
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +