-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstreamly-process.cabal
152 lines (140 loc) · 4.5 KB
/
streamly-process.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
cabal-version: 2.2
name: streamly-process
version: 0.3.1
synopsis: Use OS processes as stream transformation functions
description:
Use operating system (OS) commands in Haskell programs as if they were
native Haskell functions, by treating their inputs and outputs as
Haskell streams. This allows you to write high-level Haskell scripts
that can perform tasks similar to shell scripts, but with C-like
performance, and with strong safety guarantees, refactorability, and
modularity.
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: [email protected]
copyright: Composewell Technologies
category: Streamly, Streaming, System
stability: Experimental
tested-with: GHC==9.4.4
, GHC==9.2.7
, GHC==9.0.2
, GHC==8.10.7
, GHC==8.8.4
, GHC==8.6.5
build-type: Simple
extra-source-files:
CHANGELOG.md
NOTICE
README.md
design/proposal.md
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.8
-------------------------------------------------------------------------------
-- 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.5
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.16
-- Uses internal APIs
, streamly-core