Repository navigation
Expand file tree
/
Copy pathstreamly-process.cabal
More file actions
162 lines (150 loc) · 4.81 KB
/
Copy pathstreamly-process.cabal
File metadata and controls
162 lines (150 loc) · 4.81 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
cabal-version: 2.2
name: streamly-process
version: 0.4.1
synopsis: Write shell-like command pipelines in Haskell
description:
Treat operating system (OS) processes as first-class stream
transformations in Haskell. This package lets you compose external
commands as if they were native Haskell functions, connecting
their inputs and outputs through typed streams and perform tasks
concurrently. It let's you do your scripting tasks in Haskell with
near-native performance.
.
The API is designed to be concise and ergonomic, making it easy
to express complex pipelines with minimal boilerplate. You can
build high-level, declarative workflows similar to shell scripts
while retaining Haskell’s strengths: type safety, composability,
refactorability, and modular design. Moreover, you get the concurrent
compositions and C-like performance of streamly.
homepage: https://streamly.composewell.com
bug-reports: https://github.com/composewell/streamly-process/issues
license: Apache-2.0
license-file: LICENSE
author: Composewell Technologies
maintainer: streamly@composewell.com
copyright: Composewell Technologies
category: Streamly, Streaming, System
stability: Experimental
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.8
, GHC==8.10.7
build-type: Simple
extra-doc-files:
CHANGELOG.md
NOTICE
README.md
design/proposal.md
extra-source-files:
src/DocTestCommand.hs
src/DocTestProcess.hs
test/data/failExec.bat
test/data/failExec.sh
test/data/passExec.bat
test/data/passExec.sh
test/data/writeTrToError.bat
test/data/writeTrToError.sh
source-repository head
type: git
location: https://github.com/composewell/streamly-process
flag fusion-plugin
description: Use fusion plugin for benchmarks and executables
manual: True
default: False
flag use-native
description: Do not depend on the process package
manual: True
default: False
common compile-options
default-language: Haskell2010
ghc-options:
-Weverything
-Wno-implicit-prelude
-Wno-missing-deriving-strategies
-Wno-missing-exported-signatures
-Wno-missing-import-lists
-Wno-missing-local-signatures
-Wno-missing-safe-haskell-mode
-Wno-missed-specialisations
-Wno-all-missed-specialisations
-Wno-monomorphism-restriction
-Wno-prepositive-qualified-module
-Wno-unsafe
if !impl(ghc < 9.2)
ghc-options:
-Wno-missing-kind-signatures
common optimization-options
ghc-options:
-O2
-fdicts-strict
-fspec-constr-recursive=16
-fmax-worker-args=16
if flag(use-native)
cpp-options: -DUSE_NATIVE
library
import: compile-options, optimization-options
include-dirs: src
hs-source-dirs: src
exposed-modules:
Streamly.System.Process
Streamly.System.Command
Streamly.Internal.System.Process
Streamly.Internal.System.Command
if flag (use-native) && !os(windows)
exposed-modules:
Streamly.Internal.System.Process.Posix
build-depends:
base >= 4.8 && < 5
, exceptions >= 0.8 && < 0.11
-- Uses internal APIs
, streamly >= 0.9 && < 0.12
, streamly-core >= 0.1 && < 0.4
if !flag(use-native)
build-depends: process >= 1.0 && < 1.7
else
if !os(windows)
build-depends:
unix >= 2.5 && < 2.9
-------------------------------------------------------------------------------
-- Benchmarks
-------------------------------------------------------------------------------
common threading-options
ghc-options:
-threaded
-with-rtsopts=-N
benchmark Benchmark.System.Process
import: compile-options, optimization-options
if flag(fusion-plugin) && !impl(ghc < 8.6)
ghc-options: -fplugin Fusion.Plugin
type: exitcode-stdio-1.0
main-is: Benchmark/System/Process.hs
build-depends:
streamly-process
, base >= 4.8 && < 5
, directory >= 1.2.2 && < 1.4
-- Uses internal APIs
, streamly-core
, tasty-bench >= 0.2.5 && < 0.6
if flag(fusion-plugin) && !impl(ghc < 8.6)
build-depends:
fusion-plugin >= 0.2 && < 0.3
-------------------------------------------------------------------------------
-- Test Suites
-------------------------------------------------------------------------------
test-suite Test.System.Process
import: compile-options, optimization-options, threading-options
type: exitcode-stdio-1.0
main-is: test/Streamly/System/Process.hs
build-depends:
streamly-process
, base >= 4.8 && < 5
, directory >= 1.2.2 && < 1.4
, exceptions >= 0.8 && < 0.11
, hspec >= 2.0 && < 3
, QuickCheck >= 2.10 && < 2.19
-- Uses internal APIs
, streamly-core