-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstreamly-statistics.cabal
160 lines (148 loc) · 5.16 KB
/
streamly-statistics.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
cabal-version: 2.4
name: streamly-statistics
version: 0.1.0
synopsis:
Statistical measures for finite or infinite data streams.
description:
Statistical measures for finite or infinite data streams.
.
All operations use numerically stable floating point arithmetic.
Measurements can be performed over the entire input stream or on a sliding
window of fixed or variable size. Where possible, measures are computed
online without buffering the input stream.
.
Includes\:
.
* Summary: length, sum, powerSum
* Location: minimum, maximum, rawMoments, means, exponential smoothing
* Spread: range, variance, deviations
* Shape: skewness, kurtosis
* Sample statistics, resampling
* Probablity distribution: frequency, mode, histograms
* Transforms: Fast fourier transform
homepage: https://streamly.composewell.com
bug-reports: https://github.com/composewell/streamly-statistics/issues
license: Apache-2.0
license-file: LICENSE
tested-with:
GHC==8.10.7
, GHC==9.0.2
, GHC==9.2.2
, GHC==9.4.4
author: Composewell Technologies
maintainer: streamly@composewell.com
copyright: 2019 Composewell Technologies
category: Streamly, Statistics, Streaming
extra-source-files:
CHANGELOG.md
, NOTICE
, README.md
source-repository head
type: git
location: https://github.com/composewell/streamly-statistics
flag fusion-plugin
description: Use fusion plugin for benchmarks
manual: True
default: True
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
TypeApplications
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 (#.)
common compile-options
default-language: Haskell2010
ghc-options: -Wall
-Wcompat
-Wunrecognised-warning-flags
-Widentities
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wnoncanonical-monad-instances
-Wno-deprecations
-Rghc-timing
common optimization-options
ghc-options: -O2
-fdicts-strict
-fspec-constr-recursive=16
-fmax-worker-args=16
-fsimpl-tick-factor=200
common ghc-options
import: default-extensions, compile-options, optimization-options
library
import: ghc-options
exposed-modules:
Streamly.Statistics
, Streamly.Statistics.Scanl
build-depends: base >= 4.9 && < 5
, streamly-core >= 0.3.0
, containers >= 0.5 && < 0.8
, random >= 1.2 && < 1.3
, mwc-random >= 0.15 && < 0.16
, deque >= 0.4.4 && < 0.4.5
hs-source-dirs: src
test-suite test
import: ghc-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends: streamly-statistics
, streamly-core >= 0.3.0
, base >= 4.9 && < 5
, QuickCheck >= 2.10 && < 2.16
, hspec >= 2.0 && < 3
, hspec-core >= 2.0 && < 3
, random >= 1.0.0 && < 2
, containers >= 0.5 && < 0.8
-- XXX Should remove these dependencies
, vector >= 0.11 && < 0.14
, statistics >= 0.15 && < 0.17
benchmark benchmark
import: ghc-options
ghc-options: +RTS -M3G -RTS
type: exitcode-stdio-1.0
hs-source-dirs: benchmark
main-is: Main.hs
build-depends: streamly-statistics
, streamly-core >= 0.3.0
, base >= 4.9 && < 5
, random >= 1.0.0 && < 2
, deepseq >= 1.4.1 && < 1.6
, tasty-bench >= 0.3 && < 0.5
, tasty >= 1.4.1 && < 1.6
mixins: tasty-bench
(Test.Tasty.Bench as Gauge
,Test.Tasty.Bench as Gauge.Main
)
if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
cpp-options: -DFUSION_PLUGIN
ghc-options: -fplugin Fusion.Plugin
build-depends:
fusion-plugin >= 0.2 && < 0.3