-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstreamly-coreutils.cabal
More file actions
191 lines (173 loc) · 5.54 KB
/
streamly-coreutils.cabal
File metadata and controls
191 lines (173 loc) · 5.54 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
cabal-version: 2.4
name: streamly-coreutils
version: 0.1.0
synopsis: GNU Coreutils like API for Haskell
description:
Streaming Haskell implementations of GNU coreutils, built on
Streamly. Provides familiar, composable, high-performance,
concurrent, streaming equivalents of common POSIX utilities, designed
for idiomatic Haskell scripting and systems programming.
homepage: https://github.com/composewell/streamly-coreutils
bug-reports: https://github.com/composewell/streamly-coreutils/issues
license: Apache-2.0
license-file: LICENSE
author: Composewell Technologies
maintainer: streamly@composewell.com
copyright: 2020 Composewell Technologies
category: Streamly, Streaming
stability: Experimental
build-type: Simple
tested-with:
GHC==9.14.1
, GHC==9.12.4
, GHC==9.10.3
, GHC==9.8.4
, GHC==9.6.3
, GHC==9.4.7
, GHC==9.2.8
, GHC==8.10.7
extra-doc-files:
CHANGELOG.md
, README.md
, NOTICE
, design/proposal.md
, design/design-notes.md
common compile-options
default-language: Haskell2010
if os(darwin)
cpp-options: -DCABAL_OS_DARWIN
if os(linux)
cpp-options: -DCABAL_OS_LINUX
if os(windows)
cpp-options: -DCABAL_OS_WINDOWS
ghc-options: -Weverything
-Wno-implicit-prelude
-Wno-prepositive-qualified-module
-Wno-missing-import-lists
-Wno-missing-safe-haskell-mode
-Wno-unsafe
-Wno-missing-deriving-strategies
-Wno-monomorphism-restriction
-Wno-missing-local-signatures
-Wno-missed-specialisations
-Wno-all-missed-specialisations
-Wno-missing-exported-signatures
-Wno-missing-kind-signatures
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations
common default-extensions
default-extensions:
BangPatterns
CApiFFI
CPP
ConstraintKinds
DeriveDataTypeable
DeriveGeneric
DeriveTraversable
ExistentialQuantification
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
InstanceSigs
KindSignatures
LambdaCase
MagicHash
MultiParamTypeClasses
PatternSynonyms
RankNTypes
RecordWildCards
ScopedTypeVariables
TupleSections
TypeFamilies
ViewPatterns
-- MonoLocalBinds, enabled by TypeFamilies, causes performance
-- regressions. Disable it. This must come after TypeFamilies,
-- otherwise TypeFamilies will enable it again.
NoMonoLocalBinds
-- UndecidableInstances -- Does not show any perf impact
-- UnboxedTuples -- interferes with (#.)
library
import: compile-options, default-extensions
build-depends:
base >= 4.8 && < 5
, directory >= 1.2.2 && < 1.4
, exceptions >= 0.8 && < 0.11
, filepath >= 1.4 && < 1.6
-- We use internal modules of streamly.
, streamly >= 0.11 && < 0.12
, streamly-core >= 0.3 && < 0.4
, streamly-process >= 0.4 && < 0.5
, time >= 1.9 && < 1.15
, unix-compat >= 0.5.4 && < 0.8
if !os(windows)
build-depends: unix >= 2.7.0 && < 2.9
else
build-depends: Win32 >= 2.6 && < 2.15
hs-source-dirs: src
exposed-modules:
Streamly.Coreutils
, Streamly.Coreutils.Chmod
, Streamly.Coreutils.Common
, Streamly.Coreutils.Cp
, Streamly.Coreutils.Directory
, Streamly.Coreutils.Dirname
, Streamly.Coreutils.FileTest
, Streamly.Coreutils.Ln
, Streamly.Coreutils.Cut
, Streamly.Coreutils.Ls
, Streamly.Coreutils.Mkdir
, Streamly.Coreutils.Mv
, Streamly.Coreutils.ReadLink
, Streamly.Coreutils.ResolvePath
, Streamly.Coreutils.Rm
, Streamly.Coreutils.Sh
, Streamly.Coreutils.Sleep
, Streamly.Coreutils.Stat
, Streamly.Coreutils.Tail
, Streamly.Coreutils.Touch
, Streamly.Coreutils.Which
, Streamly.Coreutils.FileTest.Common
if os(windows)
exposed-modules:
Streamly.Coreutils.FileTest.Windows
else
exposed-modules:
Streamly.Coreutils.FileTest.Posix
, Streamly.Coreutils.Id
other-modules:
Streamly.Coreutils.String
, Streamly.Coreutils.Uniq
default-language: Haskell2010
-------------------------------------------------------------------------------
-- Benchmarks
-------------------------------------------------------------------------------
-- benchmark coreutils-bench
-- import: compile-options
-- type: exitcode-stdio-1.0
-- hs-source-dirs: benchmark
-- main-is: Main.hs
-- build-depends:
-- streamly-coreutils
-- , streamly-core
-- , base >= 4.8 && < 5
-- , gauge >= 0.2.4 && < 0.3
-- , random >= 1.0.0 && < 2
-- default-language: Haskell2010
-------------------------------------------------------------------------------
-- Test suites
-------------------------------------------------------------------------------
test-suite Streamly.Coreutils.Rm
import: compile-options
type: exitcode-stdio-1.0
main-is: Streamly/Test/Coreutils/Rm.hs
hs-source-dirs: test
build-depends:
base
, directory
, filepath
, hspec
, streamly-coreutils
, temporary
, unix-compat
default-language: Haskell2010
ghc-options: -main-is Streamly.Test.Coreutils.Rm.main