-
Notifications
You must be signed in to change notification settings - Fork 0
/
streamly-coreutils.cabal
170 lines (151 loc) · 5.47 KB
/
streamly-coreutils.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
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
cabal-version: 2.4
name: streamly-coreutils
version: 0.1.0
synopsis: GNU Coreutils like API for Streamly
description:
Port useful commands from the GNU `coreutils` to Haskell functions using
streamly.
GNU `coreutils` are commonly used, well known interfaces to perform common
tasks on POSIX systems. It will be useful to have Haskell implementations of
these utilities in general and also to utilize the knowledge of these utilities
gained by programmers, admins, script writers for writing Haskell scripts.
Some of these, but not all, are available in some existing Haskell libraries in
some form or other. However, there is no comprehensive collection available,
performance may not be at par and implementations may not be streaming. The
goal of this project is to have a comprehensive streaming collection using
Streamly with performance competitive with that of the C implementations
where it matters.
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: [email protected]
copyright: 2020 Composewell Technologies
category: Streamly, Streaming
stability: Experimental
build-type: Simple
extra-source-files: CHANGELOG.md
, README.md
, NOTICE
, design/proposal.md
, design/design-notes.md
, appveyor.yml
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
, exceptions >= 0.8 && < 0.11
-- We use internal modules of streamly.
, streamly >= 0.9 && < 0.12
, streamly-core >= 0.3 && < 0.4
, time >= 1.9 && < 1.15
, directory >= 1.2.2 && < 1.4
, filepath >= 1.4 && < 1.6
, unix-compat >= 0.5.4 && < 0.8
if !os(windows)
build-depends: unix >= 2.7.0 && < 2.9
hs-source-dirs: src
exposed-modules:
Streamly.Coreutils
, Streamly.Coreutils.Common
, Streamly.Coreutils.Cp
, Streamly.Coreutils.Directory
, Streamly.Coreutils.Dirname
, Streamly.Coreutils.Mv
, Streamly.Coreutils.Stat
, Streamly.Coreutils.Mkdir
, Streamly.Coreutils.FileTest
, Streamly.Coreutils.Ls
, Streamly.Coreutils.Rm
, Streamly.Coreutils.String
, Streamly.Coreutils.ReadLink
, Streamly.Coreutils.ShellWords
, Streamly.Coreutils.Sleep
, Streamly.Coreutils.Touch
, Streamly.Coreutils.Uniq
, Streamly.Coreutils.Which
, Streamly.Coreutils.Ln
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 coreutils-test
import: compile-options
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
build-depends:
streamly-coreutils
, streamly-core
, base >= 4.8 && < 5
default-language: Haskell2010