@@ -329,6 +329,7 @@ library
329329 Streamly.Benchmark.Inspection
330330 , Streamly.Benchmark.FileIO.Array
331331 , Streamly.Benchmark.FileIO.Stream
332+ , Streamly.Benchmark.Prelude
332333
333334 build-depends: base >= 4.8 && < 5
334335 , ghc-prim >= 0.2 && < 0.6
@@ -524,16 +525,19 @@ benchmark linear
524525 type: exitcode-stdio-1.0
525526 hs-source-dirs: benchmark
526527 main-is: Linear.hs
527− other-modules: LinearOps
528− build-depends:
529− streamly
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
534− if impl(ghc < 8.0)
528+ if flag(benchmark)
529+ buildable: True
535530 build-depends:
536− transformers >= 0.4 && < 0.6
531+ streamly
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+ if impl(ghc < 8.0)
537+ build-depends:
538+ transformers >= 0.4 && < 0.6
539+ else
540+ buildable: False
537541
538542benchmark linear-async
539543 import: bench-options
@@ -541,32 +545,38 @@ benchmark linear-async
541545 type: exitcode-stdio-1.0
542546 hs-source-dirs: benchmark
543547 main-is: LinearAsync.hs
544− other-modules: LinearOps
545− build-depends:
546− streamly
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
551− if impl(ghc < 8.0)
548+ if flag(benchmark)
549+ buildable: True
552550 build-depends:
553− transformers >= 0.4 && < 0.6
551+ streamly
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
556+ if impl(ghc < 8.0)
557+ build-depends:
558+ transformers >= 0.4 && < 0.6
559+ else
560+ buildable: False
554561
555562benchmark linear-rate
556563 import: bench-options
557564 type: exitcode-stdio-1.0
558565 hs-source-dirs: benchmark
559566 main-is: LinearRate.hs
560− other-modules: LinearOps
561− build-depends:
562− streamly
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
567− if impl(ghc < 8.0)
567+ if flag(benchmark)
568+ buildable: True
568569 build-depends:
569− transformers >= 0.4 && < 0.6
570+ streamly
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
575+ if impl(ghc < 8.0)
576+ build-depends:
577+ transformers >= 0.4 && < 0.6
578+ else
579+ buildable: False
570580
571581benchmark nested
572582 import: bench-options