-
Notifications
You must be signed in to change notification settings - Fork 5
/
byteslice.cabal
125 lines (107 loc) · 3.06 KB
/
byteslice.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
cabal-version: 2.4
name: byteslice
version: 0.2.14.0
synopsis: Slicing managed and unmanaged memory
description:
This library provides types that allow the user to talk about a slice of
a ByteArray or a MutableByteArray. It also offers UnmanagedBytes, which
is kind of like a slice into unmanaged memory. However, it is just an
address and a length.
homepage: https://github.com/byteverse/byteslice
bug-reports: https://github.com/byteverse/byteslice/issues
license: BSD-3-Clause
license-file: LICENSE
author: Andrew Martin
maintainer: [email protected]
copyright: 2020 Andrew Martin
category: Data
extra-doc-files:
CHANGELOG.md
README.md
tested-with: GHC ==9.4.8 || ==9.6.3 || ==9.8.1
common build-settings
default-language: Haskell2010
ghc-options: -Wall -Wunused-packages
flag avoid-rawmemchr
default: True
description: Avoid using rawmemchr which is non-portable GNU libc only
library
import: build-settings
exposed-modules:
Data.Bytes
Data.Bytes.Chunks
Data.Bytes.Encode.BigEndian
Data.Bytes.Encode.LittleEndian
Data.Bytes.Internal
Data.Bytes.Mutable
Data.Bytes.Text.Ascii
Data.Bytes.Text.AsciiExt
Data.Bytes.Text.Latin1
Data.Bytes.Text.Utf8
Data.Bytes.Text.Windows1252
Data.Bytes.Types
other-modules:
Cstrlen
Data.Bytes.Byte
Data.Bytes.Internal.Show
Data.Bytes.IO
Data.Bytes.Pure
Data.Bytes.Search
Reps
build-depends:
, base >=4.14 && <5
, bytestring >=0.10.8 && <0.13
, natural-arithmetic >=0.1.4
, primitive >=0.7.4 && <0.10
, primitive-addr >=0.1 && <0.2
, primitive-unlifted >=0.1.2 && <2.3
, run-st >=0.1.1 && <0.2
, text >=1.2.5
, text-short >=0.1.3 && <0.2
, tuples >=0.1 && <0.2
, vector >=0.12 && <0.14
hs-source-dirs: src
ghc-options: -O2
if impl(ghc >=9.2)
hs-source-dirs: src-new-reps
else
hs-source-dirs: src-old-reps
if impl(ghc >=9.0)
hs-source-dirs: src-ghc-cstrlen
else
hs-source-dirs: src-no-ghc-cstrlen
include-dirs: include
includes: bs_custom.h
install-includes: bs_custom.h
c-sources: cbits/bs_custom.c
if flag(avoid-rawmemchr)
cc-options: -DAVOID_RAWMEMCHR=1
test-suite test
import: build-settings
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
, base >=4.11.1 && <5
, byteslice
, bytestring
, primitive
, quickcheck-classes >=0.6.4
, tasty
, tasty-hunit
, tasty-quickcheck
, text >=1.2
, transformers
benchmark bench
import: build-settings
type: exitcode-stdio-1.0
build-depends:
, base
, byteslice
, gauge
ghc-options: -O2
hs-source-dirs: bench
main-is: Main.hs
source-repository head
type: git
location: git://github.com/byteverse/byteslice.git