-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbetter.cabal
More file actions
266 lines (246 loc) · 7.37 KB
/
better.cabal
File metadata and controls
266 lines (246 loc) · 7.37 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
cabal-version: 3.0
-- The cabal-version field refers to the version of the .cabal specification,
-- and can be different from the cabal-install (the tool) version and the
-- Cabal (the library) version you are using. As such, the Cabal (the library)
-- version used must be equal or greater than the version stated in this field.
-- Starting from the specification version 2.2, the cabal-version field must be
-- the first thing in the cabal file.
-- Initial package description 'ff' generated by
-- 'cabal init'. For further documentation, see:
-- http://haskell.org/cabal/users-guide/
--
-- The name of the package.
name: better
-- The package version.
-- See the Haskell package versioning policy (PVP) for standards
-- guiding when and how versions should be incremented.
-- https://pvp.haskell.org
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.1.0.0
-- A short (one-line) description of the package.
-- synopsis:
-- A longer description of the package.
-- description:
-- The license under which the package is released.
license: MIT
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: TheKK
-- An email address to which users can send suggestions, bug reports, and patches.
maintainer: thumbd03803@gmail.com
-- A copyright notice.
-- copyright:
build-type: Simple
-- Extra doc files to be distributed with the package, such as a CHANGELOG or a README.
extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
flag plugin
default: False
Manual: True
common warnings
ghc-options:
-Wall
-fllvm
-eventlog
-threaded
-rtsopts
-fdicts-strict
-flate-specialise
-fmax-worker-args=16
-fspec-constr-recursive=16
-- -fdistinct-constructor-tables
-- -finfo-table-map
-funfolding-use-threshold=16
-optc-O3
-optcxx-O3
-optlc-O3
-optlo-O3
if flag(plugin)
ghc-options: -fplugin=Fusion.Plugin
library better-core
import: warnings
C-sources:
cbits/gear.c
include-dirs:
cbits
exposed-modules:
Better.Internal.Primitive
Better.Internal.Repository
Better.Internal.Repository.LowLevel
Better.Internal.Repository.GarbageCollection
Better.Internal.Repository.IntegrityCheck
Better.Internal.Streamly.Crypto.AES
Better.Internal.Streamly.Array
Better.Internal.Packer
Better.Internal.Packer.Model
Better.Streamly.FileSystem.Dir
Better.Streamly.FileSystem.Chunker
Better.Data.FileSystemChanges
Better.Posix.File
Better.Repository
Better.Repository.Types
Better.Repository.Backup
Better.Repository.Class
Better.Repository.BackupCache.Class
Better.Repository.BackupCache.LevelDB
Better.Hash
Better.Logging.Effect
Better.TempDir
Better.TempDir.Class
Better.Statistics.Backup
Better.Statistics.Backup.Class
Better.Statistics.Backup.Default
other-modules:
build-depends:
base >=4.16 && < 5,
async ^>= 2.2.5,
base16 ^>= 1.0,
binary ^>= 0.8.9,
blake3 ^>= 0.3,
bytestring ^>= 0.11.4,
bytestring-trie ^>= 0.2.7,
containers ^>= 0.6.5,
crypton ^>= 0.34,
deepseq ^>= 1.4.6,
directory ^>= 1.3.6,
effectful ^>= 2.3,
effectful-core ^>= 2.3.0,
effectful-th ^>= 1.0.0,
exceptions ^>= 0.10.4,
filepath ^>= 1.4.2,
flatparse >= 0.5.0 && < 0.6,
fusion-plugin ^>= 0.2.7,
fusion-plugin-types ^>= 0.1.0,
ghc-prim ^>= 0.8.0,
hashable ^>= 1.4.3,
hedgehog ^>= 1.4,
katip ^>= 0.8.7,
ki ^>= 1.0.1,
ki-effectful ^>= 0.1,
leveldb-haskell ^>= 0.6.5,
memory ^>= 0.18.0,
mmorph >= 1.2.0 && < 1.3,
mtl ^>= 2.2.2,
parallel ^>= 3.2.2,
path ^>= 0.9.5,
primitive ^>= 0.8.0,
random ^>= 1.2.1,
resourcet >= 1.3.0 && < 1.4,
splitmix ^>= 0.1.0,
stm ^>= 2.5.0,
stm-containers ^>= 1.2.0,
streamly ^>= 0.9.0,
streamly-bytestring ^>= 0.2.0,
streamly-core ^>= 0.1.0,
temporary ^>= 1.3,
text ^>= 2.0.2,
time ^>= 1.11.1,
transformers ^>= 0.5.6,
unagi-chan ^>= 0.4.1,
unix ^>= 2.7.2,
unliftio-core ^>= 0.2.1,
utf8-string ^>= 1.0.2,
vector ^>= 0.13.1,
hs-source-dirs: src
default-language: GHC2021
-- executable fuse
-- import: warnings, deps
-- main-is: Main.hs
-- hs-source-dirs: fuse
-- default-language: Haskell2010
-- build-depends: better-core, libfuse3, unliftio-core
executable better
import: warnings
main-is: Main.hs
other-modules:
Cli
Cli.Backup
Cli.ChangePassword
Cli.PatchBackup
Cli.FamiliarBackup
Cli.FamiliarRestore
Cli.FamiliarListShareFolders
Cli.GarbageCollection
Cli.IntegrityCheck
Cli.RestoreTree
Cli.VersionFind
Cli.Versions
Cli.TreeList
Cli.CatFile
Cli.CatTree
Cli.CatChunk
Cli.CatFileChunks
Cli.InitLocal
Cli.Ref
Cli.Ref.Cat
Repository.Find
Repository.Restore
Config
LocalCache
Monad
Crypto
Util.Options
Better.Bin.Pretty
hs-source-dirs: app
default-language: GHC2021
build-depends:
base >=4.16 && < 5,
better-core,
aeson ^>= 2.2.1,
ansi-terminal ^>= 1.0,
base16 ^>= 1.0,
bytestring ^>= 0.11.4,
containers ^>= 0.6.5,
crypton ^>= 0.34,
deepseq ^>= 1.4.6,
directory ^>= 1.3.6,
effectful ^>= 2.3,
effectful-core ^>= 2.3.0,
exceptions ^>= 0.10.4,
filepath ^>= 1.4.2,
fusion-plugin ^>= 0.2.7,
katip ^>= 0.8.7,
ki ^>= 1.0.1,
ki-effectful ^>= 0.1,
leveldb-haskell ^>= 0.6.5,
megaparsec ^>= 9.6.1,
memory ^>= 0.18.0,
mtl ^>= 2.2.2,
optparse-applicative ^>= 0.18.1,
parallel ^>= 3.2.2,
parser-combinators ^>= 1.3.0,
path ^>= 0.9.5,
prettyprinter ^>= 1.7,
stm ^>= 2.5.0,
streamly ^>= 0.9.0,
streamly-bytestring ^>= 0.2.0,
streamly-core ^>= 0.1.0,
temporary ^>= 1.3,
terminal-size ^>= 0.3.4,
text ^>= 2.0.2,
time ^>= 1.11.1,
tomland ^>= 1.3.3,
transformers ^>= 0.5.6,
unix ^>= 2.7.2,
unliftio-core ^>= 0.2.1,
utf8-string ^>= 1.0.2,
test-suite test
import: warnings
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
default-language: GHC2021
build-depends: base >=4.16 && < 5, better-core, hedgehog, crypton, bytestring, streamly-core, streamly-bytestring, fusion-plugin, tasty, tasty-hedgehog
benchmark cdc
import: warnings
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Parser
hs-source-dirs: bench/cdc
default-language: GHC2021
build-depends: base >=4.16 && < 5, better-core, streamly, streamly-core, streamly-bytestring, criterion, fusion-plugin, crypton, bytestring, path, stm, random, splitmix, containers, unordered-containers, memory, blake3, base16 ^>= 1.0, megaparsec, parser-combinators