@@ -329,6 +329,7 @@ library
329 Streamly.Benchmark.Inspection
329 Streamly.Benchmark.Inspection
330 , Streamly.Benchmark.FileIO.Array
330 , Streamly.Benchmark.FileIO.Array
331 , Streamly.Benchmark.FileIO.Stream
331 , Streamly.Benchmark.FileIO.Stream
332+ , Streamly.Benchmark.Prelude
333 build-depends: base >= 4.8 && < 5
334 build-depends: base >= 4.8 && < 5
334 , ghc-prim >= 0.2 && < 0.6
335 , ghc-prim >= 0.2 && < 0.6
@@ -524,16 +525,19 @@ benchmark linear
524 type: exitcode-stdio-1.0
525 type: exitcode-stdio-1.0
525 hs-source-dirs: benchmark
526 hs-source-dirs: benchmark
526 main-is: Linear.hs
527 main-is: Linear.hs
527− other-modules: LinearOps
528+ if flag(benchmark)
528− build-depends:
529+ buildable: True
530− , base >= 4.8 && < 5
531− , deepseq >= 1.4.1 && < 1.5
532− , random >= 1.0 && < 2.0
533− , gauge >= 0.2.4 && < 0.3
535 build-depends:
530 build-depends:
532+ , base >= 4.8 && < 5
533+ , deepseq >= 1.4.1 && < 1.5
534+ , random >= 1.0 && < 2.0
535+ , gauge >= 0.2.4 && < 0.3
536− transformers >= 0.4 && < 0.6
538+ transformers >= 0.4 && < 0.6
538benchmark linear-async
542benchmark linear-async
539 import: bench-options
543 import: bench-options
@@ -541,32 +545,38 @@ benchmark linear-async
541 type: exitcode-stdio-1.0
545 type: exitcode-stdio-1.0
542 hs-source-dirs: benchmark
546 hs-source-dirs: benchmark
543 main-is: LinearAsync.hs
547 main-is: LinearAsync.hs
544− other-modules: LinearOps
548+ if flag(benchmark)
545− build-depends:
549+ buildable: True
547− , base >= 4.8 && < 5
548− , deepseq >= 1.4.1 && < 1.5
549− , random >= 1.0 && < 2.0
550− , gauge >= 0.2.4 && < 0.3
552 build-depends:
550 build-depends:
552+ , base >= 4.8 && < 5
553+ , deepseq >= 1.4.1 && < 1.5
554+ , random >= 1.0 && < 2.0
555+ , gauge >= 0.2.4 && < 0.3
553− transformers >= 0.4 && < 0.6
558+ transformers >= 0.4 && < 0.6
555benchmark linear-rate
562benchmark linear-rate
556 import: bench-options
563 import: bench-options
557 type: exitcode-stdio-1.0
564 type: exitcode-stdio-1.0
558 hs-source-dirs: benchmark
565 hs-source-dirs: benchmark
559 main-is: LinearRate.hs
566 main-is: LinearRate.hs
560− other-modules: LinearOps
567+ if flag(benchmark)
561− build-depends:
568+ buildable: True
563− , base >= 4.8 && < 5
564− , deepseq >= 1.4.1 && < 1.5
565− , random >= 1.0 && < 2.0
566− , gauge >= 0.2.4 && < 0.3
568 build-depends:
569 build-depends:
571+ , base >= 4.8 && < 5
572+ , deepseq >= 1.4.1 && < 1.5
573+ , random >= 1.0 && < 2.0
574+ , gauge >= 0.2.4 && < 0.3
569− transformers >= 0.4 && < 0.6
577+ transformers >= 0.4 && < 0.6
571benchmark nested
581benchmark nested
572 import: bench-options
582 import: bench-options