@@ -266,7 +266,7 @@ test-suite maxrate
266 , base >= 4.8 && < 5
266 , base >= 4.8 && < 5
267 , clock >= 0.7.1 && < 0.8
267 , clock >= 0.7.1 && < 0.8
268 , hspec >= 2.0 && < 3
268 , hspec >= 2.0 && < 3
269− , random >= 1.0.0 && < 1.2
269+ , random >= 1.0.0 && < 2
271 buildable: False
271 buildable: False
@@ -289,7 +289,7 @@ test-suite nested-loops
289 build-Depends:
289 build-Depends:
291 , base >= 4.8 && < 5
291 , base >= 4.8 && < 5
292− , random >= 1.0.0 && < 1.2
292+ , random >= 1.0.0 && < 2
294test-suite parallel-loops
294test-suite parallel-loops
295 type: exitcode-stdio-1.0
295 type: exitcode-stdio-1.0
@@ -300,7 +300,7 @@ test-suite parallel-loops
300 build-Depends:
300 build-Depends:
302 , base >= 4.8 && < 5
302 , base >= 4.8 && < 5
303− , random >= 1.0.0 && < 1.2
303+ , random >= 1.0.0 && < 2
305-------------------------------------------------------------------------------
305-------------------------------------------------------------------------------
306-- Benchmarks
306-- Benchmarks
@@ -450,30 +450,80 @@ benchmark base
450 -Wnoncanonical-monad-instances
450 -Wnoncanonical-monad-instances
451 -Wnoncanonical-monadfail-instances
451 -Wnoncanonical-monadfail-instances
453− build-depends:
455+ build-depends:
454− base >= 4.8 && < 5
456+ base >= 4.8 && < 5
455− , deepseq >= 1.4.0 && < 1.5
457+ , deepseq >= 1.4.0 && < 1.5
456− , random >= 1.0 && < 2.0
458+ , random >= 1.0 && < 2.0
457− , gauge >= 0.2.4 && < 0.3
459+ , gauge >= 0.2.4 && < 0.3
459− , ghc-prim >= 0.2 && < 0.6
461+ , ghc-prim >= 0.2 && < 0.6
460− , containers >= 0.5 && < 0.7
462+ , containers >= 0.5 && < 0.7
461− , heaps >= 0.3 && < 0.4
463+ , heaps >= 0.3 && < 0.4
463− -- concurrency
465+ -- concurrency
464− , atomic-primops >= 0.8 && < 0.9
466+ , atomic-primops >= 0.8 && < 0.9
465− , lockfree-queue >= 0.2.3 && < 0.3
467+ , lockfree-queue >= 0.2.3 && < 0.3
466− , clock >= 0.7.1 && < 0.8
468+ , clock >= 0.7.1 && < 0.8
468− , exceptions >= 0.8 && < 0.11
470+ , exceptions >= 0.8 && < 0.11
469− , monad-control >= 1.0 && < 2
471+ , monad-control >= 1.0 && < 2
470− , mtl >= 2.2 && < 3
472+ , mtl >= 2.2 && < 3
471− , transformers >= 0.4 && < 0.6
473+ , transformers >= 0.4 && < 0.6
472− , transformers-base >= 0.4 && < 0.5
474+ , transformers-base >= 0.4 && < 0.5
474− if impl(ghc < 8.0)
476+ if impl(ghc < 8.0)
475− build-depends:
477+ build-depends:
476− semigroups >= 0.18 && < 0.19
478+ semigroups >= 0.18 && < 0.19
482+executable nano-bench
483+ hs-source-dirs: benchmark, src
484+ main-is: NanoBenchmarks.hs
485+ other-modules: Streamly.SVar
486+ , Streamly.Streams.StreamK
487+ , Streamly.Streams.StreamD
488+ default-language: Haskell2010
489+ ghc-options: -O2 -Wall
495+ , gauge >= 0.2.4 && < 0.3
496+ , ghc-prim >= 0.2 && < 0.6
497+ , containers >= 0.5 && < 0.7
498+ , heaps >= 0.3 && < 0.4
501+ , atomic-primops >= 0.8 && < 0.9
502+ , lockfree-queue >= 0.2.3 && < 0.3
503+ , clock >= 0.7.1 && < 0.8
505+ , exceptions >= 0.8 && < 0.11
506+ , monad-control >= 1.0 && < 2
508+ , transformers >= 0.4 && < 0.6
513+ hs-source-dirs: benchmark
514+ main-is: Adaptive.hs
515+ default-language: Haskell2010
516+ ghc-options: -O2 -Wall
522+ , base >= 4.8 && < 5
523+ , gauge >= 0.2.4 && < 0.3
524+ , random >= 1.0 && < 2.0
478executable chart
528executable chart
479 default-language: Haskell2010
529 default-language: Haskell2010
@@ -531,7 +581,7 @@ executable MergeSort
531 build-Depends:
581 build-Depends:
533 , base >= 4.8 && < 5
583 , base >= 4.8 && < 5
534− , random >= 1.0.0 && < 1.2
584+ , random >= 1.0.0 && < 2
536 buildable: False
586 buildable: False