-
Notifications
You must be signed in to change notification settings - Fork 4
/
text-builder-linear.cabal
99 lines (88 loc) · 3.08 KB
/
text-builder-linear.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
cabal-version: 2.4
name: text-builder-linear
version: 0.1.3
license: BSD-3-Clause
license-file: LICENSE
copyright: 2022 Andrew Lelechenko
maintainer: Andrew Lelechenko <[email protected]>
author: Andrew Lelechenko
tested-with: ghc ==9.2.8 ghc ==9.4.8 ghc ==9.6.6 ghc ==9.8.2 ghc ==9.10.1
homepage: https://github.com/Bodigrim/linear-builder
synopsis: Builder for Text and ByteString based on linear types
description:
Strict Text and ByteString builder, which hides mutable buffer behind linear types
and takes amortized linear time.
category: Text
extra-doc-files:
changelog.md
README.md
source-repository head
type: git
location: git://github.com/Bodigrim/linear-builder.git
library
exposed-modules:
Data.Text.Builder.Linear
Data.Text.Builder.Linear.Buffer
Data.Text.Builder.Linear.Core
hs-source-dirs: src
other-modules:
Data.Text.Builder.Linear.Array
Data.Text.Builder.Linear.Char
Data.Text.Builder.Linear.Dec.Bounded
Data.Text.Builder.Linear.Dec.Unbounded
Data.Text.Builder.Linear.Double
Data.Text.Builder.Linear.Hex
Data.Text.Builder.Linear.Internal
default-language: GHC2021
default-extensions:
LinearTypes MagicHash NumDecimals UnboxedTuples UnicodeSyntax
UnliftedDatatypes ViewPatterns
ghc-options: -Wall -O2 -fexpose-all-unfoldings
build-depends:
base >=4.16 && <5,
text >=2.0 && <2.2,
bytestring >=0.11 && <0.13,
ghc-bignum >=1.1 && < 2.0,
quote-quot >=0.2.1 && <0.3
test-suite linear-builder-tests
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
default-language: GHC2021
default-extensions:
DerivingStrategies LinearTypes MagicHash NumDecimals PatternSynonyms
UnboxedTuples UnicodeSyntax
ghc-options:
-Wall -Wno-orphans -threaded -rtsopts "-with-rtsopts -N"
build-depends:
base,
text,
text-builder-linear,
tasty >=1.4 && <1.6,
tasty-quickcheck >=0.10 && <0.12
benchmark linear-builder-bench
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: bench
other-modules:
BenchChar
BenchDecimal
BenchDecimalUnbounded
BenchDouble
BenchHexadecimal
BenchText
default-language: GHC2021
default-extensions: CPP LinearTypes NumDecimals UnicodeSyntax
ghc-options: -Wall -rtsopts -O2 -fproc-alignment=64
build-depends:
base,
bytestring,
text,
text-builder-linear,
-- NOTE: The following packages are optional, but are not required that
-- often. While they could be guarded by a flag, we prefer keeping
-- the Hackage page simple. Just uncomment these lines when needed.
-- bytestring-strict-builder >= 0.4.5 && < 0.5,
-- text-builder >= 0.6.7 && < 0.7,
tasty,
tasty-bench >=0.4 && <0.5