2019-08-23 05:35:19 +03:00
|
|
|
|
cabal-version: 2.2
|
2017-11-20 15:33:13 +03:00
|
|
|
|
name: streamly
|
2019-03-27 22:43:46 +03:00
|
|
|
|
version: 0.6.1
|
2017-10-20 07:06:00 +03:00
|
|
|
|
synopsis: Beautiful Streaming, Concurrent and Reactive Composition
|
2017-12-02 18:39:06 +03:00
|
|
|
|
description:
|
2019-08-27 12:44:39 +03:00
|
|
|
|
Streamly is a framework for writing programs in a high level, declarative
|
|
|
|
|
data flow programming paradigm. It provides a simple API, very close to
|
|
|
|
|
standard Haskell lists. A program is expressed as a composition of data
|
|
|
|
|
processing pipes, generally known as streams. Streams can be generated,
|
|
|
|
|
merged, chained, mapped, zipped, and consumed concurrently – enabling a high
|
|
|
|
|
level, declarative yet concurrent composition of programs. Programs can be
|
|
|
|
|
concurrent or non-concurrent without any significant change. Concurrency is
|
|
|
|
|
auto scaled based on consumption rate. Programmers do not have to be aware
|
|
|
|
|
of threads, locking or synchronization to write scalable concurrent programs.
|
|
|
|
|
Streamly provides C like performance, orders of magnitude better compared to
|
|
|
|
|
existing streaming libraries.
|
2017-10-20 07:06:00 +03:00
|
|
|
|
.
|
2019-08-27 12:44:39 +03:00
|
|
|
|
Streamly is designed to express the full spectrum of programs with highest
|
|
|
|
|
performance. Do not think that if you are writing a small and simple program
|
|
|
|
|
it may not be for you. It expresses a small "hello world" program with the
|
|
|
|
|
same efficiency, simplicity and elegance as a large scale concurrent
|
|
|
|
|
application. It unifies many different aspects of special purpose libraries
|
|
|
|
|
into a single yet simple framework.
|
|
|
|
|
.
|
|
|
|
|
Streamly covers the functionality provided by Haskell lists as well as the
|
|
|
|
|
functionality provided by streaming libraries like
|
2018-06-14 23:38:06 +03:00
|
|
|
|
<https://hackage.haskell.org/package/streaming streaming>,
|
|
|
|
|
<https://hackage.haskell.org/package/pipes pipes>, and
|
2019-08-27 12:44:39 +03:00
|
|
|
|
<https://hackage.haskell.org/package/conduit conduit> with a simpler API and
|
|
|
|
|
better performance. Streamly provides
|
2019-05-12 23:35:22 +03:00
|
|
|
|
advanced stream composition including various ways of appending, merging,
|
|
|
|
|
zipping, splitting, grouping, distributing, partitioning and unzipping of
|
|
|
|
|
streams with true streaming and with concurrency. Streamly subsumes the
|
2018-06-14 23:38:06 +03:00
|
|
|
|
functionality of list transformer libraries like @pipes@ or
|
2018-05-04 21:53:03 +03:00
|
|
|
|
<https://hackage.haskell.org/package/list-t list-t> and also the logic
|
2019-08-27 12:44:39 +03:00
|
|
|
|
programming library <https://hackage.haskell.org/package/logict logict>.
|
|
|
|
|
The grouping, splitting and windowing combinators in streamly can be compared
|
|
|
|
|
to the window operators in <https://flink.apache.org/ Apache Flink>.
|
|
|
|
|
However, compared to Flink streamly has a pure functional, succinct and
|
|
|
|
|
expressive API.
|
2018-05-04 21:53:03 +03:00
|
|
|
|
.
|
2019-08-27 12:44:39 +03:00
|
|
|
|
The concurrency capabilities of streamly are much more advanced and powerful
|
|
|
|
|
compared to the basic concurrency functionality provided by the
|
|
|
|
|
<https://hackage.haskell.org/package/async async> package. Streamly is a
|
|
|
|
|
first class reactive programming library. If you are familiar with
|
|
|
|
|
<http://reactivex.io/ Reactive Extensions> you will find that it is very
|
|
|
|
|
similar. For most RxJs combinators you can find or write corresponding ones
|
|
|
|
|
in streamly. Streamly can be used as an alternative to
|
|
|
|
|
<https://hackage.haskell.org/package/Yampa Yampa> or
|
|
|
|
|
<https://hackage.haskell.org/package/reflex reflex> as well.
|
2019-05-22 01:17:22 +03:00
|
|
|
|
.
|
|
|
|
|
Streamly focuses on practical engineering with high performance. From well
|
|
|
|
|
written streamly programs one can expect performance competitive to C. High
|
|
|
|
|
performance streaming eliminates the need for string and text libraries like
|
2019-05-12 23:35:22 +03:00
|
|
|
|
<https://hackage.haskell.org/package/bytestring bytestring>,
|
|
|
|
|
<https://hackage.haskell.org/package/text text> and their lazy and strict
|
2019-08-27 12:44:39 +03:00
|
|
|
|
flavors. The confusion and cognitive overhead arising from different
|
|
|
|
|
string types is eliminated. The two fundamental types in streamly are arrays
|
|
|
|
|
for storage and streams for processing. Strings and text are simply streams
|
|
|
|
|
or arrays of 'Char' as they should be. Arrays in streamly have performance
|
|
|
|
|
at par with the vector library.
|
2018-05-04 21:53:03 +03:00
|
|
|
|
.
|
|
|
|
|
Where to find more information:
|
|
|
|
|
.
|
2018-10-22 11:05:54 +03:00
|
|
|
|
* /Quick Overview/: <src/README.md README file> in the package
|
2019-08-27 12:44:39 +03:00
|
|
|
|
* /Building/: <src/docs/Build.md Build guide> for optimal performance
|
2018-10-22 11:05:54 +03:00
|
|
|
|
* /Detailed Tutorial/: "Streamly.Tutorial" module in the haddock documentation
|
2019-08-27 12:44:39 +03:00
|
|
|
|
* /Interoperation/: "Streamly.Tutorial" module for interop with other
|
|
|
|
|
streaming libraries
|
2018-10-22 11:05:54 +03:00
|
|
|
|
* /Reference Documentation/: Haddock documentation for the respective modules
|
|
|
|
|
* /Examples/: <src/examples examples directory> in the package
|
|
|
|
|
* /Guides/: <src/docs docs directory> in the package, for documentation on
|
|
|
|
|
advanced topics, limitations, semantics of the library or on specific use
|
|
|
|
|
cases.
|
2018-10-26 21:34:55 +03:00
|
|
|
|
* <https://github.com/composewell/streaming-benchmarks Streaming Benchmarks>
|
|
|
|
|
* <https://github.com/composewell/concurrency-benchmarks Concurrency Benchmarks>
|
2017-12-02 18:39:06 +03:00
|
|
|
|
|
2017-12-05 18:40:43 +03:00
|
|
|
|
homepage: https://github.com/composewell/streamly
|
|
|
|
|
bug-reports: https://github.com/composewell/streamly/issues
|
2019-08-23 05:35:19 +03:00
|
|
|
|
license: BSD-3-Clause
|
2017-06-07 18:32:27 +03:00
|
|
|
|
license-file: LICENSE
|
2018-12-30 22:17:49 +03:00
|
|
|
|
tested-with: GHC==7.10.3
|
|
|
|
|
, GHC==8.0.2
|
|
|
|
|
, GHC==8.4.4
|
2019-08-27 05:18:30 +03:00
|
|
|
|
, GHC==8.6.5
|
|
|
|
|
, GHC==8.8.1
|
2017-09-04 13:19:11 +03:00
|
|
|
|
author: Harendra Kumar
|
2017-06-07 18:32:27 +03:00
|
|
|
|
maintainer: harendra.kumar@gmail.com
|
2017-09-04 13:19:11 +03:00
|
|
|
|
copyright: 2017 Harendra Kumar
|
2017-09-06 06:29:43 +03:00
|
|
|
|
category: Control, Concurrency, Streaming, Reactivity
|
2017-06-07 18:32:27 +03:00
|
|
|
|
stability: Experimental
|
2019-01-11 00:51:02 +03:00
|
|
|
|
build-type: Configure
|
2017-06-07 18:32:27 +03:00
|
|
|
|
|
2017-12-04 13:39:36 +03:00
|
|
|
|
extra-source-files:
|
|
|
|
|
Changelog.md
|
2019-01-21 07:36:50 +03:00
|
|
|
|
credits/*.md
|
|
|
|
|
credits/clock-0.7.2.txt
|
|
|
|
|
credits/foldl-1.4.5.txt
|
|
|
|
|
credits/pipes-concurrency-2.0.8.txt
|
|
|
|
|
credits/pipes-concurrency.txt
|
|
|
|
|
credits/transient-0.5.5.txt
|
|
|
|
|
credits/vector-0.12.0.2.txt
|
|
|
|
|
credits/Yampa-0.10.6.2.txt
|
2017-12-04 13:39:36 +03:00
|
|
|
|
README.md
|
2018-10-22 11:05:54 +03:00
|
|
|
|
docs/streamly-vs-async.md
|
|
|
|
|
docs/transformers.md
|
2018-05-03 22:57:22 +03:00
|
|
|
|
bench.sh
|
2017-12-04 13:39:36 +03:00
|
|
|
|
stack.yaml
|
2018-06-22 01:52:17 +03:00
|
|
|
|
src/Streamly/Streams/Instances.hs
|
2018-10-27 23:19:44 +03:00
|
|
|
|
src/Streamly/Streams/inline.hs
|
2019-01-11 00:51:02 +03:00
|
|
|
|
configure.ac
|
|
|
|
|
configure
|
|
|
|
|
src/Streamly/Time/config.h.in
|
|
|
|
|
|
|
|
|
|
extra-tmp-files:
|
|
|
|
|
config.log
|
|
|
|
|
config.status
|
|
|
|
|
autom4te.cache
|
|
|
|
|
src/Streamly/Time/config.h
|
2017-12-04 13:39:36 +03:00
|
|
|
|
|
2017-10-18 09:21:38 +03:00
|
|
|
|
source-repository head
|
|
|
|
|
type: git
|
2017-12-05 18:40:43 +03:00
|
|
|
|
location: https://github.com/composewell/streamly
|
2017-10-18 09:21:38 +03:00
|
|
|
|
|
2019-08-19 16:22:26 +03:00
|
|
|
|
flag benchmark
|
|
|
|
|
description: Benchmark build
|
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2019-08-27 18:32:44 +03:00
|
|
|
|
flag inspection
|
|
|
|
|
description: Enable inspection testing
|
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2017-09-14 06:10:50 +03:00
|
|
|
|
flag dev
|
2018-05-27 07:22:00 +03:00
|
|
|
|
description: Development build
|
2017-09-14 06:10:50 +03:00
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2019-05-16 04:21:23 +03:00
|
|
|
|
flag has-llvm
|
|
|
|
|
description: Use llvm backend for better performance
|
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2019-03-20 13:07:54 +03:00
|
|
|
|
flag no-charts
|
|
|
|
|
description: Disable chart generation
|
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2018-06-24 20:26:40 +03:00
|
|
|
|
flag no-fusion
|
|
|
|
|
description: Disable rewrite rules
|
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2018-06-26 07:14:06 +03:00
|
|
|
|
flag streamk
|
|
|
|
|
description: Use CPS style streams when possible
|
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2017-10-18 09:21:38 +03:00
|
|
|
|
flag examples
|
2018-05-27 07:22:00 +03:00
|
|
|
|
description: Build including examples
|
2017-10-18 09:21:38 +03:00
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2017-12-01 12:04:46 +03:00
|
|
|
|
flag examples-sdl
|
2018-05-27 07:22:00 +03:00
|
|
|
|
description: Build including SDL examples
|
2017-12-01 12:04:46 +03:00
|
|
|
|
manual: True
|
|
|
|
|
default: False
|
|
|
|
|
|
2019-08-23 05:35:19 +03:00
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
-- Common stanzas
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
common compile-options
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
if flag(streamk)
|
|
|
|
|
cpp-options: -DUSE_STREAMK_ONLY
|
|
|
|
|
|
|
|
|
|
if flag(no-fusion)
|
|
|
|
|
cpp-options: -DDISABLE_FUSION
|
|
|
|
|
|
|
|
|
|
if flag(dev)
|
|
|
|
|
cpp-options: -DDEVBUILD
|
|
|
|
|
|
2019-08-27 18:32:44 +03:00
|
|
|
|
if flag(inspection)
|
|
|
|
|
cpp-options: -DINSPECTION
|
|
|
|
|
|
2019-08-23 05:35:19 +03:00
|
|
|
|
ghc-options: -Wall
|
|
|
|
|
|
|
|
|
|
if flag(has-llvm)
|
|
|
|
|
ghc-options: -fllvm
|
|
|
|
|
|
|
|
|
|
if flag(dev)
|
|
|
|
|
ghc-options: -Wmissed-specialisations
|
|
|
|
|
-Wall-missed-specialisations
|
|
|
|
|
-fno-ignore-asserts
|
|
|
|
|
if impl(ghc >= 8.0)
|
|
|
|
|
ghc-options: -Wcompat
|
|
|
|
|
-Wunrecognised-warning-flags
|
|
|
|
|
-Widentities
|
|
|
|
|
-Wincomplete-record-updates
|
|
|
|
|
-Wincomplete-uni-patterns
|
|
|
|
|
-Wredundant-constraints
|
|
|
|
|
-Wnoncanonical-monad-instances
|
|
|
|
|
|
|
|
|
|
common optimization-options
|
|
|
|
|
ghc-options: -O2
|
|
|
|
|
-fspec-constr-recursive=10
|
|
|
|
|
-fmax-worker-args=16
|
|
|
|
|
|
|
|
|
|
common threading-options
|
|
|
|
|
ghc-options: -threaded
|
|
|
|
|
-with-rtsopts=-N
|
|
|
|
|
|
|
|
|
|
-- We need optimization options here to optimize internal (non-inlined)
|
|
|
|
|
-- versions of functions. Also, we have some benchmarking inspection tests
|
|
|
|
|
-- part of the library when built with --benchmarks flag. Thos tests fail
|
|
|
|
|
-- if we do not use optimization options here. It was observed that due to
|
|
|
|
|
-- -O2 here some concurrent/nested benchmarks improved and others regressed.
|
|
|
|
|
-- We can investigate a bit more here why the regression occurred.
|
|
|
|
|
common lib-options
|
|
|
|
|
import: compile-options, optimization-options
|
|
|
|
|
|
|
|
|
|
-- Compilation for coverage builds on CI machines takes too long without -O0
|
|
|
|
|
-- XXX we should use coverage flag for that, -O0 may take too long to run tests
|
|
|
|
|
-- in general.
|
|
|
|
|
common test-options
|
|
|
|
|
import: compile-options, threading-options
|
|
|
|
|
ghc-options: -O0
|
|
|
|
|
-fno-ignore-asserts
|
|
|
|
|
|
|
|
|
|
-- Used by maxrate test, benchmarks and executables
|
|
|
|
|
common exe-options
|
|
|
|
|
import: compile-options, optimization-options, threading-options
|
|
|
|
|
|
|
|
|
|
-- Some benchmarks are threaded some are not
|
|
|
|
|
common bench-options
|
|
|
|
|
import: compile-options, optimization-options
|
|
|
|
|
ghc-options: -with-rtsopts "-T"
|
|
|
|
|
|
2018-05-03 22:57:22 +03:00
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
-- Library
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
2017-06-07 18:32:27 +03:00
|
|
|
|
library
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: lib-options
|
2019-01-11 00:51:02 +03:00
|
|
|
|
js-sources: jsbits/clock.js
|
|
|
|
|
include-dirs: src/Streamly/Time
|
|
|
|
|
, src/Streamly/Streams
|
|
|
|
|
if os(windows)
|
|
|
|
|
c-sources: src/Streamly/Time/Windows.c
|
|
|
|
|
if os(darwin)
|
|
|
|
|
c-sources: src/Streamly/Time/Darwin.c
|
2017-06-07 18:32:27 +03:00
|
|
|
|
hs-source-dirs: src
|
2019-09-24 22:49:19 +03:00
|
|
|
|
other-modules: Streamly.SVar
|
2019-05-15 16:52:53 +03:00
|
|
|
|
, Streamly.Strict
|
|
|
|
|
, Streamly.Enumeration
|
|
|
|
|
|
|
|
|
|
-- Memory storage
|
2019-09-10 08:55:59 +03:00
|
|
|
|
, Streamly.Memory.Malloc
|
2019-08-06 02:01:23 +03:00
|
|
|
|
, Streamly.Memory.Ring
|
2019-05-15 16:52:53 +03:00
|
|
|
|
|
2018-11-02 16:14:30 +03:00
|
|
|
|
-- Base streams
|
2018-12-26 14:37:24 +03:00
|
|
|
|
, Streamly.Streams.StreamK.Type
|
2018-06-22 02:00:26 +03:00
|
|
|
|
, Streamly.Streams.StreamK
|
2019-08-29 16:02:40 +03:00
|
|
|
|
, Streamly.Streams.StreamDK.Type
|
|
|
|
|
, Streamly.Streams.StreamDK
|
2018-12-26 14:37:24 +03:00
|
|
|
|
, Streamly.Streams.StreamD.Type
|
2018-06-23 15:01:17 +03:00
|
|
|
|
, Streamly.Streams.StreamD
|
2018-11-02 16:14:30 +03:00
|
|
|
|
, Streamly.Streams.Prelude
|
|
|
|
|
|
|
|
|
|
-- Higher level streams
|
2018-06-22 01:28:16 +03:00
|
|
|
|
, Streamly.Streams.SVar
|
2018-11-02 16:14:30 +03:00
|
|
|
|
, Streamly.Streams.Serial
|
2018-06-22 01:28:16 +03:00
|
|
|
|
, Streamly.Streams.Async
|
|
|
|
|
, Streamly.Streams.Parallel
|
|
|
|
|
, Streamly.Streams.Ahead
|
|
|
|
|
, Streamly.Streams.Zip
|
2018-11-02 16:14:30 +03:00
|
|
|
|
, Streamly.Streams.Combinators
|
2019-05-15 16:52:53 +03:00
|
|
|
|
|
|
|
|
|
-- Folds
|
2019-05-07 23:48:40 +03:00
|
|
|
|
, Streamly.Sink.Types
|
|
|
|
|
, Streamly.Sink
|
2018-12-30 19:43:57 +03:00
|
|
|
|
|
2019-06-13 21:13:49 +03:00
|
|
|
|
, Streamly.FileSystem.IOVec
|
|
|
|
|
, Streamly.FileSystem.FDIO
|
2019-07-30 12:02:30 +03:00
|
|
|
|
, Streamly.FileSystem.FD
|
|
|
|
|
|
|
|
|
|
-- Time
|
|
|
|
|
, Streamly.Time.Units
|
|
|
|
|
, Streamly.Time.Clock
|
2019-06-13 21:13:49 +03:00
|
|
|
|
|
2018-12-30 19:43:57 +03:00
|
|
|
|
exposed-modules: Streamly.Prelude
|
2017-11-20 15:33:13 +03:00
|
|
|
|
, Streamly.Time
|
|
|
|
|
, Streamly
|
2019-09-22 19:05:02 +03:00
|
|
|
|
, Streamly.Data.Fold
|
2019-08-12 07:22:27 +03:00
|
|
|
|
, Streamly.Data.String
|
2019-05-29 21:49:30 +03:00
|
|
|
|
|
|
|
|
|
-- IO devices
|
2019-08-06 02:01:23 +03:00
|
|
|
|
, Streamly.Memory.Array
|
2019-05-30 06:01:24 +03:00
|
|
|
|
, Streamly.FileSystem.Handle
|
2019-05-20 03:47:45 +03:00
|
|
|
|
|
2018-06-22 01:28:16 +03:00
|
|
|
|
, Streamly.Tutorial
|
2019-09-24 13:02:02 +03:00
|
|
|
|
|
|
|
|
|
-- Internal modules
|
2018-09-19 21:44:16 +03:00
|
|
|
|
, Streamly.Internal
|
2019-09-24 22:49:19 +03:00
|
|
|
|
, Streamly.Internal.Data.Atomics
|
2019-09-24 21:05:01 +03:00
|
|
|
|
, Streamly.Internal.Memory.Array.Types
|
2019-09-24 13:02:02 +03:00
|
|
|
|
, Streamly.Internal.Memory.ArrayStream
|
2019-09-22 19:05:02 +03:00
|
|
|
|
, Streamly.Internal.Data.Fold.Types
|
2019-09-22 22:02:54 +03:00
|
|
|
|
, Streamly.Internal.Data.Fold
|
|
|
|
|
, Streamly.Internal.Data.Unfold.Types
|
|
|
|
|
, Streamly.Internal.Data.Unfold
|
2019-09-24 22:34:30 +03:00
|
|
|
|
, Streamly.Internal.Data.Pipe.Types
|
|
|
|
|
, Streamly.Internal.Data.Pipe
|
2019-09-24 20:46:23 +03:00
|
|
|
|
, Streamly.Internal.Data.List
|
2019-09-24 21:53:07 +03:00
|
|
|
|
, Streamly.Internal.FileSystem.Handle
|
2019-09-24 22:09:58 +03:00
|
|
|
|
, Streamly.Internal.FileSystem.File
|
2019-09-21 17:41:16 +03:00
|
|
|
|
, Streamly.Internal.Prelude
|
2019-07-26 14:25:15 +03:00
|
|
|
|
if !impl(ghcjs)
|
2019-08-19 16:22:26 +03:00
|
|
|
|
exposed-modules:
|
2019-07-26 14:25:15 +03:00
|
|
|
|
Streamly.Network.Socket
|
|
|
|
|
, Streamly.Network.Server
|
|
|
|
|
, Streamly.Network.Client
|
2017-11-21 18:06:01 +03:00
|
|
|
|
|
2019-08-19 16:22:26 +03:00
|
|
|
|
if flag(benchmark)
|
|
|
|
|
exposed-modules:
|
2019-08-27 18:32:44 +03:00
|
|
|
|
Streamly.Benchmark.FileIO.Array
|
2019-08-19 16:22:26 +03:00
|
|
|
|
, Streamly.Benchmark.FileIO.Stream
|
2019-08-23 12:27:29 +03:00
|
|
|
|
, Streamly.Benchmark.Prelude
|
2019-08-19 16:22:26 +03:00
|
|
|
|
|
2017-08-31 03:41:46 +03:00
|
|
|
|
build-depends: base >= 4.8 && < 5
|
2018-06-24 20:13:30 +03:00
|
|
|
|
, ghc-prim >= 0.2 && < 0.6
|
2019-06-15 21:31:33 +03:00
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
2019-09-18 05:38:57 +03:00
|
|
|
|
, containers >= 0.5.8.2 && < 0.7
|
2018-05-17 08:52:29 +03:00
|
|
|
|
, heaps >= 0.3 && < 0.4
|
2018-05-27 06:25:03 +03:00
|
|
|
|
|
|
|
|
|
-- concurrency
|
|
|
|
|
, atomic-primops >= 0.8 && < 0.9
|
2018-05-17 08:52:29 +03:00
|
|
|
|
, lockfree-queue >= 0.2.3 && < 0.3
|
|
|
|
|
|
|
|
|
|
-- transfomers
|
2018-03-18 09:52:59 +03:00
|
|
|
|
, exceptions >= 0.8 && < 0.11
|
2017-08-31 03:41:46 +03:00
|
|
|
|
, monad-control >= 1.0 && < 2
|
|
|
|
|
, mtl >= 2.2 && < 3
|
2017-09-05 11:04:39 +03:00
|
|
|
|
, transformers >= 0.4 && < 0.6
|
2017-08-31 03:41:46 +03:00
|
|
|
|
, transformers-base >= 0.4 && < 0.5
|
2017-10-20 23:19:14 +03:00
|
|
|
|
|
2019-08-27 18:32:44 +03:00
|
|
|
|
if flag(inspection)
|
|
|
|
|
build-depends: template-haskell >= 2.14 && < 2.16
|
|
|
|
|
, inspection-testing >= 0.4 && < 0.5
|
2019-08-19 16:22:26 +03:00
|
|
|
|
|
2019-07-26 14:25:15 +03:00
|
|
|
|
if !impl(ghcjs)
|
|
|
|
|
build-depends:
|
|
|
|
|
network >= 2.6 && < 4
|
2017-09-08 20:10:23 +03:00
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
semigroups >= 0.18 && < 0.19
|
2017-06-07 18:32:27 +03:00
|
|
|
|
|
2018-05-03 22:57:22 +03:00
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
-- Test suites
|
|
|
|
|
-------------------------------------------------------------------------------
|
2017-10-20 23:19:14 +03:00
|
|
|
|
|
2017-06-30 23:05:49 +03:00
|
|
|
|
test-suite test
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2017-06-30 23:05:49 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
main-is: Main.hs
|
2019-01-10 03:06:23 +03:00
|
|
|
|
js-sources: jsbits/clock.js
|
2017-06-30 23:05:49 +03:00
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
build-depends:
|
2017-11-20 15:33:13 +03:00
|
|
|
|
streamly
|
2017-08-31 03:41:46 +03:00
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, hspec >= 2.0 && < 3
|
2019-09-18 05:38:57 +03:00
|
|
|
|
, containers >= 0.5.8.2 && < 0.7
|
2018-04-22 20:27:31 +03:00
|
|
|
|
, transformers >= 0.4 && < 0.6
|
|
|
|
|
, mtl >= 2.2 && < 3
|
|
|
|
|
, exceptions >= 0.8 && < 0.11
|
2017-06-30 23:05:49 +03:00
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
2019-07-29 01:46:23 +03:00
|
|
|
|
test-suite pure-streams-base
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2019-07-29 01:46:23 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
main-is: PureStreams.hs
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, hspec >= 2.0 && < 3
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
2018-12-30 22:26:57 +03:00
|
|
|
|
-- test-suite pure-streams-streamly
|
|
|
|
|
-- type: exitcode-stdio-1.0
|
2019-08-23 05:35:19 +03:00
|
|
|
|
-- import: test-options
|
2018-12-30 22:26:57 +03:00
|
|
|
|
-- main-is: PureStreams.hs
|
|
|
|
|
-- hs-source-dirs: test
|
|
|
|
|
-- cpp-options: -DUSE_STREAMLY_LIST
|
|
|
|
|
-- build-depends:
|
|
|
|
|
-- streamly
|
|
|
|
|
-- , base >= 4.8 && < 5
|
|
|
|
|
-- , hspec >= 2.0 && < 3
|
|
|
|
|
-- default-language: Haskell2010
|
2018-11-17 05:51:17 +03:00
|
|
|
|
|
2018-04-14 12:26:02 +03:00
|
|
|
|
test-suite properties
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2018-04-14 12:26:02 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
main-is: Prop.hs
|
2019-01-10 03:06:23 +03:00
|
|
|
|
js-sources: jsbits/clock.js
|
2018-04-14 12:26:02 +03:00
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
2019-03-27 21:19:23 +03:00
|
|
|
|
, QuickCheck >= 2.10 && < 2.14
|
2018-04-14 12:26:02 +03:00
|
|
|
|
, hspec >= 2.0 && < 3
|
2018-10-12 15:59:43 +03:00
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
2018-04-14 12:26:02 +03:00
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
2019-05-10 11:06:02 +03:00
|
|
|
|
test-suite array-test
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2019-05-06 14:54:01 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
main-is: Arrays.hs
|
|
|
|
|
js-sources: jsbits/clock.js
|
|
|
|
|
hs-source-dirs: test
|
2019-06-04 14:24:21 +03:00
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, QuickCheck >= 2.10 && < 2.14
|
|
|
|
|
, hspec >= 2.0 && < 3
|
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
|
|
test-suite string-test
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2019-06-04 14:24:21 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
main-is: String.hs
|
|
|
|
|
js-sources: jsbits/clock.js
|
|
|
|
|
hs-source-dirs: test
|
2019-05-06 14:54:01 +03:00
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, QuickCheck >= 2.10 && < 2.14
|
|
|
|
|
, hspec >= 2.0 && < 3
|
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
2018-07-08 04:53:24 +03:00
|
|
|
|
test-suite maxrate
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2018-07-08 04:53:24 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
main-is: MaxRate.hs
|
2019-01-10 03:06:23 +03:00
|
|
|
|
js-sources: jsbits/clock.js
|
2018-07-08 04:53:24 +03:00
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
if flag(dev)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
2019-09-18 10:32:23 +03:00
|
|
|
|
, clock >= 0.7.1 && < 0.9
|
2018-07-08 04:53:24 +03:00
|
|
|
|
, hspec >= 2.0 && < 3
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, random >= 1.0.0 && < 2
|
2018-07-08 04:53:24 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
2018-05-03 22:57:22 +03:00
|
|
|
|
test-suite loops
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
main-is: loops.hs
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
|
|
|
|
|
test-suite nested-loops
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
main-is: nested-loops.hs
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, random >= 1.0.0 && < 2
|
2018-05-03 22:57:22 +03:00
|
|
|
|
|
|
|
|
|
test-suite parallel-loops
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: test-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
main-is: parallel-loops.hs
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, random >= 1.0.0 && < 2
|
2018-05-03 22:57:22 +03:00
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
-- Benchmarks
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
2018-07-13 15:17:01 +03:00
|
|
|
|
benchmark linear
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2018-06-23 18:27:24 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
hs-source-dirs: benchmark
|
2018-07-13 15:17:01 +03:00
|
|
|
|
main-is: Linear.hs
|
2019-08-23 12:27:29 +03:00
|
|
|
|
if flag(benchmark)
|
|
|
|
|
buildable: True
|
2019-05-12 21:43:43 +03:00
|
|
|
|
build-depends:
|
2019-08-23 12:27:29 +03:00
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
|
|
|
|
, random >= 1.0 && < 2.0
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2018-06-23 18:27:24 +03:00
|
|
|
|
|
2018-10-09 10:18:53 +03:00
|
|
|
|
benchmark linear-async
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
|
|
|
|
cpp-options: -DLINEAR_ASYNC
|
2018-10-09 10:18:53 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
hs-source-dirs: benchmark
|
|
|
|
|
main-is: LinearAsync.hs
|
2019-08-23 12:27:29 +03:00
|
|
|
|
if flag(benchmark)
|
|
|
|
|
buildable: True
|
2019-05-12 21:43:43 +03:00
|
|
|
|
build-depends:
|
2019-08-23 12:27:29 +03:00
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
|
|
|
|
, random >= 1.0 && < 2.0
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2019-05-30 06:01:24 +03:00
|
|
|
|
|
|
|
|
|
benchmark linear-rate
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2019-05-30 06:01:24 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
hs-source-dirs: benchmark
|
|
|
|
|
main-is: LinearRate.hs
|
2019-08-23 12:27:29 +03:00
|
|
|
|
if flag(benchmark)
|
|
|
|
|
buildable: True
|
2019-05-30 06:01:24 +03:00
|
|
|
|
build-depends:
|
2019-08-23 12:27:29 +03:00
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
|
|
|
|
, random >= 1.0 && < 2.0
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2018-10-09 10:18:53 +03:00
|
|
|
|
|
2018-07-13 15:17:01 +03:00
|
|
|
|
benchmark nested
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2018-04-09 18:02:49 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
hs-source-dirs: benchmark
|
2018-07-13 15:17:01 +03:00
|
|
|
|
main-is: Nested.hs
|
|
|
|
|
other-modules: NestedOps
|
2018-04-23 11:12:33 +03:00
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
2019-06-15 21:31:33 +03:00
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
2018-04-23 11:12:33 +03:00
|
|
|
|
, random >= 1.0 && < 2.0
|
2018-10-21 17:48:49 +03:00
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
2019-05-12 23:35:22 +03:00
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
2018-04-23 11:12:33 +03:00
|
|
|
|
|
2019-05-30 06:01:24 +03:00
|
|
|
|
benchmark array
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2019-05-30 06:01:24 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
hs-source-dirs: benchmark
|
|
|
|
|
main-is: Array.hs
|
|
|
|
|
other-modules: ArrayOps
|
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
2019-06-15 21:31:33 +03:00
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
2019-05-30 06:01:24 +03:00
|
|
|
|
, random >= 1.0 && < 2.0
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
|
|
|
|
|
|
|
|
|
benchmark fileio
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2019-05-30 06:01:24 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
2019-09-15 16:07:50 +03:00
|
|
|
|
-- A value of 400 works better for some benchmarks, however, it takes
|
|
|
|
|
-- extraordinary amount of time to compile with that.
|
2019-09-16 19:16:55 +03:00
|
|
|
|
-- ghc-options: -funfolding-use-threshold=150
|
2019-05-30 06:01:24 +03:00
|
|
|
|
hs-source-dirs: benchmark
|
|
|
|
|
main-is: FileIO.hs
|
2019-08-19 16:22:26 +03:00
|
|
|
|
if flag(benchmark)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
, typed-process >= 0.2.3 && < 0.3
|
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2019-05-30 06:01:24 +03:00
|
|
|
|
|
2019-06-28 00:24:35 +03:00
|
|
|
|
benchmark concurrent
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2019-06-28 00:24:35 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
hs-source-dirs: benchmark
|
|
|
|
|
main-is: Concurrent.hs
|
|
|
|
|
if flag(dev)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
2018-07-13 15:17:01 +03:00
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
-- Internal benchmarks for unexposed modules
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
-- We have to copy the streamly library modules here because there is no
|
|
|
|
|
-- way to use unexposed modules from the library.
|
|
|
|
|
|
|
|
|
|
benchmark base
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2018-04-23 11:12:33 +03:00
|
|
|
|
type: exitcode-stdio-1.0
|
2019-01-11 00:51:02 +03:00
|
|
|
|
include-dirs: src/Streamly/Time
|
|
|
|
|
, src/Streamly/Streams
|
|
|
|
|
if os(windows)
|
|
|
|
|
c-sources: src/Streamly/Time/Windows.c
|
|
|
|
|
if os(darwin)
|
|
|
|
|
c-sources: src/Streamly/Time/Darwin.c
|
2018-07-13 15:17:01 +03:00
|
|
|
|
hs-source-dirs: benchmark, src
|
|
|
|
|
main-is: BaseStreams.hs
|
2019-09-24 22:49:19 +03:00
|
|
|
|
other-modules: Streamly.Internal.Data.Atomics
|
2019-01-11 00:51:02 +03:00
|
|
|
|
, Streamly.Time.Units
|
|
|
|
|
, Streamly.Time.Clock
|
2019-01-08 21:45:24 +03:00
|
|
|
|
, Streamly.SVar
|
2019-08-29 16:02:40 +03:00
|
|
|
|
, Streamly.Streams.StreamDK.Type
|
|
|
|
|
, Streamly.Streams.StreamDK
|
2018-12-26 22:22:33 +03:00
|
|
|
|
, Streamly.Streams.StreamK.Type
|
2018-07-13 15:17:01 +03:00
|
|
|
|
, Streamly.Streams.StreamK
|
2018-12-26 22:22:33 +03:00
|
|
|
|
, Streamly.Streams.StreamD.Type
|
2018-07-13 15:17:01 +03:00
|
|
|
|
, Streamly.Streams.StreamD
|
|
|
|
|
, Streamly.Streams.Prelude
|
2019-06-15 10:49:09 +03:00
|
|
|
|
, Streamly.FileSystem.IOVec
|
2018-07-13 15:17:01 +03:00
|
|
|
|
|
|
|
|
|
, StreamDOps
|
|
|
|
|
, StreamKOps
|
2019-08-29 16:02:40 +03:00
|
|
|
|
, StreamDKOps
|
2018-07-13 15:17:01 +03:00
|
|
|
|
|
2018-11-06 02:06:41 +03:00
|
|
|
|
if flag(dev)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-depends:
|
|
|
|
|
base >= 4.8 && < 5
|
2019-06-15 21:31:33 +03:00
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, random >= 1.0 && < 2.0
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
|
|
|
|
|
, ghc-prim >= 0.2 && < 0.6
|
2019-09-18 05:38:57 +03:00
|
|
|
|
, containers >= 0.5.8.2 && < 0.7
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, heaps >= 0.3 && < 0.4
|
|
|
|
|
|
|
|
|
|
-- concurrency
|
|
|
|
|
, atomic-primops >= 0.8 && < 0.9
|
|
|
|
|
, lockfree-queue >= 0.2.3 && < 0.3
|
|
|
|
|
|
|
|
|
|
, exceptions >= 0.8 && < 0.11
|
|
|
|
|
, monad-control >= 1.0 && < 2
|
|
|
|
|
, mtl >= 2.2 && < 3
|
|
|
|
|
, transformers >= 0.4 && < 0.6
|
|
|
|
|
, transformers-base >= 0.4 && < 0.5
|
2018-07-13 15:17:01 +03:00
|
|
|
|
|
2018-11-06 02:06:41 +03:00
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
semigroups >= 0.18 && < 0.19
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2018-07-13 15:17:01 +03:00
|
|
|
|
|
2018-11-06 02:06:41 +03:00
|
|
|
|
executable nano-bench
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2018-11-06 02:06:41 +03:00
|
|
|
|
hs-source-dirs: benchmark, src
|
2019-01-11 00:51:02 +03:00
|
|
|
|
include-dirs: src/Streamly/Time
|
|
|
|
|
, src/Streamly/Streams
|
|
|
|
|
if os(windows)
|
|
|
|
|
c-sources: src/Streamly/Time/Windows.c
|
|
|
|
|
if os(darwin)
|
|
|
|
|
c-sources: src/Streamly/Time/Darwin.c
|
2018-11-06 02:06:41 +03:00
|
|
|
|
main-is: NanoBenchmarks.hs
|
2019-09-24 22:49:19 +03:00
|
|
|
|
other-modules: Streamly.Internal.Data.Atomics
|
2019-01-11 00:51:02 +03:00
|
|
|
|
, Streamly.Time.Units
|
|
|
|
|
, Streamly.Time.Clock
|
2019-01-08 21:45:24 +03:00
|
|
|
|
, Streamly.SVar
|
2018-12-26 22:22:33 +03:00
|
|
|
|
, Streamly.Streams.StreamK.Type
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, Streamly.Streams.StreamK
|
2018-12-26 22:22:33 +03:00
|
|
|
|
, Streamly.Streams.StreamD.Type
|
2019-06-15 10:49:09 +03:00
|
|
|
|
, Streamly.FileSystem.IOVec
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, Streamly.Streams.StreamD
|
|
|
|
|
if flag(dev)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-depends:
|
|
|
|
|
base >= 4.8 && < 5
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
, ghc-prim >= 0.2 && < 0.6
|
2019-09-18 05:38:57 +03:00
|
|
|
|
, containers >= 0.5.8.2 && < 0.7
|
2019-06-15 21:31:33 +03:00
|
|
|
|
, deepseq >= 1.4.1 && < 1.5
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, heaps >= 0.3 && < 0.4
|
2018-12-26 22:22:33 +03:00
|
|
|
|
, random >= 1.0 && < 2.0
|
2018-11-06 02:06:41 +03:00
|
|
|
|
|
|
|
|
|
-- concurrency
|
|
|
|
|
, atomic-primops >= 0.8 && < 0.9
|
|
|
|
|
, lockfree-queue >= 0.2.3 && < 0.3
|
|
|
|
|
|
|
|
|
|
, exceptions >= 0.8 && < 0.11
|
|
|
|
|
, monad-control >= 1.0 && < 2
|
|
|
|
|
, mtl >= 2.2 && < 3
|
|
|
|
|
, transformers >= 0.4 && < 0.6
|
2019-05-06 14:54:01 +03:00
|
|
|
|
, transformers-base >= 0.4 && < 0.5
|
2018-11-06 02:06:41 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2018-07-13 15:17:01 +03:00
|
|
|
|
|
2018-11-06 02:06:41 +03:00
|
|
|
|
executable adaptive
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: bench-options
|
2018-11-06 02:06:41 +03:00
|
|
|
|
hs-source-dirs: benchmark
|
|
|
|
|
main-is: Adaptive.hs
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
if flag(dev)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, gauge >= 0.2.4 && < 0.3
|
|
|
|
|
, random >= 1.0 && < 2.0
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2018-04-09 18:02:49 +03:00
|
|
|
|
|
2018-10-09 10:18:53 +03:00
|
|
|
|
executable chart
|
2018-04-25 11:51:02 +03:00
|
|
|
|
default-language: Haskell2010
|
2019-08-23 05:35:19 +03:00
|
|
|
|
ghc-options: -Wall
|
2018-04-25 11:51:02 +03:00
|
|
|
|
hs-source-dirs: benchmark
|
2018-10-09 10:18:53 +03:00
|
|
|
|
main-is: Chart.hs
|
2019-03-20 13:07:54 +03:00
|
|
|
|
if flag(dev) && !flag(no-charts) && !impl(ghcjs)
|
2018-04-10 09:21:05 +03:00
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
base >= 4.8 && < 5
|
2019-08-27 21:04:35 +03:00
|
|
|
|
, bench-show >= 0.3 && < 0.4
|
2018-04-10 09:21:05 +03:00
|
|
|
|
, split
|
2018-10-26 15:45:14 +03:00
|
|
|
|
, transformers >= 0.4 && < 0.6
|
2018-04-10 09:21:05 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
2018-05-03 22:57:22 +03:00
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
-- Examples
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
executable SearchQuery
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
main-is: SearchQuery.hs
|
2017-10-18 09:21:38 +03:00
|
|
|
|
hs-source-dirs: examples
|
2019-01-10 03:06:23 +03:00
|
|
|
|
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
|
2017-10-18 09:21:38 +03:00
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
2017-11-20 15:33:13 +03:00
|
|
|
|
streamly
|
2018-05-03 22:57:22 +03:00
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, http-conduit >= 2.2.2 && < 2.4
|
2017-10-18 09:21:38 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
2018-05-03 22:57:22 +03:00
|
|
|
|
executable ListDir
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
main-is: ListDir.hs
|
2017-10-18 09:21:38 +03:00
|
|
|
|
hs-source-dirs: examples
|
2018-04-17 15:19:35 +03:00
|
|
|
|
if flag(examples) || flag(examples-sdl)
|
2017-10-18 09:21:38 +03:00
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
2017-11-20 15:33:13 +03:00
|
|
|
|
streamly
|
2018-05-03 22:57:22 +03:00
|
|
|
|
, base >= 4.8 && < 5
|
2018-12-30 22:55:10 +03:00
|
|
|
|
, path-io >= 0.1.0 && < 1.5
|
2018-05-04 23:37:35 +03:00
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
transformers >= 0.4 && < 0.6
|
2017-10-18 09:21:38 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
2018-05-03 22:57:22 +03:00
|
|
|
|
executable MergeSort
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
main-is: MergeSort.hs
|
2017-10-18 09:21:38 +03:00
|
|
|
|
hs-source-dirs: examples
|
2018-04-17 15:19:35 +03:00
|
|
|
|
if flag(examples) || flag(examples-sdl)
|
2017-10-18 09:21:38 +03:00
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
2017-11-20 15:33:13 +03:00
|
|
|
|
streamly
|
2017-12-04 13:39:36 +03:00
|
|
|
|
, base >= 4.8 && < 5
|
2018-11-06 02:06:41 +03:00
|
|
|
|
, random >= 1.0.0 && < 2
|
2018-05-03 22:57:22 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
|
|
executable AcidRain
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
main-is: AcidRain.hs
|
|
|
|
|
hs-source-dirs: examples
|
|
|
|
|
if flag(examples) || flag(examples-sdl)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, mtl >= 2.2 && < 3
|
2018-05-03 23:13:07 +03:00
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
semigroups >= 0.18 && < 0.19
|
2018-05-04 23:37:35 +03:00
|
|
|
|
, transformers >= 0.4 && < 0.6
|
2018-05-03 22:57:22 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
|
|
executable CirclingSquare
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2018-05-03 22:57:22 +03:00
|
|
|
|
main-is: CirclingSquare.hs
|
|
|
|
|
hs-source-dirs: examples
|
|
|
|
|
if flag(examples-sdl)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, SDL >= 0.6.5 && < 0.7
|
2017-10-18 09:21:38 +03:00
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2018-10-26 15:45:14 +03:00
|
|
|
|
|
|
|
|
|
executable ControlFlow
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2018-10-26 15:45:14 +03:00
|
|
|
|
main-is: ControlFlow.hs
|
|
|
|
|
hs-source-dirs: examples
|
|
|
|
|
if flag(examples) || flag(examples-sdl)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, exceptions >= 0.8 && < 0.11
|
|
|
|
|
, transformers >= 0.4 && < 0.6
|
|
|
|
|
, transformers-base >= 0.4 && < 0.5
|
|
|
|
|
if impl(ghc < 8.0)
|
|
|
|
|
build-depends:
|
|
|
|
|
semigroups >= 0.18 && < 0.19
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2019-05-22 04:38:34 +03:00
|
|
|
|
|
2019-05-31 07:15:22 +03:00
|
|
|
|
executable HandleIO
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2019-05-31 07:15:22 +03:00
|
|
|
|
main-is: HandleIO.hs
|
2019-05-22 04:38:34 +03:00
|
|
|
|
hs-source-dirs: examples
|
|
|
|
|
if flag(examples) || flag(examples-sdl)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2019-05-31 07:19:32 +03:00
|
|
|
|
|
2019-06-18 18:21:21 +03:00
|
|
|
|
executable FileIOExamples
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2019-06-18 18:21:21 +03:00
|
|
|
|
main-is: FileIOExamples.hs
|
2019-05-31 07:19:32 +03:00
|
|
|
|
hs-source-dirs: examples
|
|
|
|
|
if flag(examples) || flag(examples-sdl)
|
2019-07-30 12:02:30 +03:00
|
|
|
|
buildable: False
|
2019-05-31 07:19:32 +03:00
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2019-05-31 12:31:14 +03:00
|
|
|
|
|
|
|
|
|
executable EchoServer
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2019-05-31 12:31:14 +03:00
|
|
|
|
main-is: EchoServer.hs
|
|
|
|
|
hs-source-dirs: examples
|
2019-07-29 15:22:22 +03:00
|
|
|
|
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
|
2019-05-31 12:31:14 +03:00
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
|
|
executable FileSinkServer
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2019-05-31 12:31:14 +03:00
|
|
|
|
main-is: FileSinkServer.hs
|
|
|
|
|
hs-source-dirs: examples
|
2019-07-29 15:22:22 +03:00
|
|
|
|
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
|
2019-05-31 12:31:14 +03:00
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
|
|
executable FromFileClient
|
2019-08-23 05:35:19 +03:00
|
|
|
|
import: exe-options
|
2019-05-31 12:31:14 +03:00
|
|
|
|
main-is: FromFileClient.hs
|
|
|
|
|
hs-source-dirs: examples
|
2019-07-29 15:22:22 +03:00
|
|
|
|
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
|
2019-05-31 12:31:14 +03:00
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|
2019-09-05 22:02:54 +03:00
|
|
|
|
|
|
|
|
|
executable WordClassifier
|
|
|
|
|
import: exe-options
|
|
|
|
|
main-is: WordClassifier.hs
|
|
|
|
|
hs-source-dirs: examples
|
|
|
|
|
if (flag(examples) || flag(examples-sdl)) && !impl(ghcjs)
|
|
|
|
|
buildable: True
|
|
|
|
|
build-Depends:
|
|
|
|
|
streamly
|
|
|
|
|
, base >= 4.8 && < 5
|
|
|
|
|
, hashable >= 1.2 && < 1.3
|
|
|
|
|
, unordered-containers >= 0.2 && < 0.3
|
|
|
|
|
else
|
|
|
|
|
buildable: False
|