@@ -145,12 +145,12 @@ common optimization-options
145common test-dependencies
145common test-dependencies
146 build-depends:
146 build-depends:
147 streamly-core
147 streamly-core
148− , base >= 4.9 && < 4.18
148+ , base >= 4.9 && < 4.19
149 , containers >= 0.5 && < 0.7
149 , containers >= 0.5 && < 0.7
150 , exceptions >= 0.8 && < 0.11
150 , exceptions >= 0.8 && < 0.11
152 , hspec >= 2.0 && < 2.10
152 , hspec >= 2.0 && < 2.10
153− , mtl >= 2.2 && < 2.3
153+ , mtl >= 2.2 && < 2.3.2
154 , random >= 1.0.0 && < 1.3
154 , random >= 1.0.0 && < 1.3
155 , transformers >= 0.4 && < 0.7
155 , transformers >= 0.4 && < 0.7
156 , QuickCheck >= 2.13 && < 2.15
156 , QuickCheck >= 2.13 && < 2.15
@@ -180,7 +180,7 @@ library
180 import: lib-options, test-dependencies
180 import: lib-options, test-dependencies
181 hs-source-dirs: lib
181 hs-source-dirs: lib
182 exposed-modules: Streamly.Test.Common
182 exposed-modules: Streamly.Test.Common
183− if !flag(use-streamly-core)
183+ if !flag(use-streamly-core) && impl(ghc < 9.4.5)
184 exposed-modules: Streamly.Test.Prelude.Common
184 exposed-modules: Streamly.Test.Prelude.Common
185 if flag(limit-build-mem)
185 if flag(limit-build-mem)
186 ghc-options: +RTS -M1500M -RTS
186 ghc-options: +RTS -M1500M -RTS
@@ -386,7 +386,7 @@ test-suite Prelude
386 type: exitcode-stdio-1.0
386 type: exitcode-stdio-1.0
387 main-is: Streamly/Test/Prelude.hs
387 main-is: Streamly/Test/Prelude.hs
388 ghc-options: -main-is Streamly.Test.Prelude.main
388 ghc-options: -main-is Streamly.Test.Prelude.main
389− if flag(use-streamly-core)
389+ if flag(use-streamly-core) || impl(ghc >= 9.6)
390 buildable: False
390 buildable: False
392test-suite Prelude.Ahead
392test-suite Prelude.Ahead
@@ -394,7 +394,7 @@ test-suite Prelude.Ahead
394 type: exitcode-stdio-1.0
394 type: exitcode-stdio-1.0
395 main-is: Streamly/Test/Prelude/Ahead.hs
395 main-is: Streamly/Test/Prelude/Ahead.hs
396 ghc-options: -main-is Streamly.Test.Prelude.Ahead.main
396 ghc-options: -main-is Streamly.Test.Prelude.Ahead.main
397− if flag(use-streamly-core)
397+ if flag(use-streamly-core) || impl(ghc >= 9.6)
398 buildable: False
398 buildable: False
400test-suite Prelude.Async
400test-suite Prelude.Async
@@ -402,7 +402,7 @@ test-suite Prelude.Async
402 type: exitcode-stdio-1.0
402 type: exitcode-stdio-1.0
403 main-is: Streamly/Test/Prelude/Async.hs
403 main-is: Streamly/Test/Prelude/Async.hs
404 ghc-options: -main-is Streamly.Test.Prelude.Async.main
404 ghc-options: -main-is Streamly.Test.Prelude.Async.main
405− if flag(use-streamly-core)
405+ if flag(use-streamly-core) || impl(ghc >= 9.6)
406 buildable: False
406 buildable: False
408test-suite Data.Stream.Concurrent
408test-suite Data.Stream.Concurrent
@@ -420,7 +420,7 @@ test-suite Prelude.Concurrent
420 ghc-options: -main-is Streamly.Test.Prelude.Concurrent.main
420 ghc-options: -main-is Streamly.Test.Prelude.Concurrent.main
421 if flag(limit-build-mem)
421 if flag(limit-build-mem)
422 ghc-options: +RTS -M2000M -RTS
422 ghc-options: +RTS -M2000M -RTS
423− if flag(use-streamly-core)
423+ if flag(use-streamly-core) || impl(ghc >= 9.6)
424 buildable: False
424 buildable: False
426test-suite Prelude.Fold
426test-suite Prelude.Fold
@@ -428,7 +428,7 @@ test-suite Prelude.Fold
428 type: exitcode-stdio-1.0
428 type: exitcode-stdio-1.0
429 main-is: Streamly/Test/Prelude/Fold.hs
429 main-is: Streamly/Test/Prelude/Fold.hs
430 ghc-options: -main-is Streamly.Test.Prelude.Fold.main
430 ghc-options: -main-is Streamly.Test.Prelude.Fold.main
431− if flag(use-streamly-core)
431+ if flag(use-streamly-core) || impl(ghc >= 9.6)
432 buildable: False
432 buildable: False
434test-suite Prelude.Parallel
434test-suite Prelude.Parallel
@@ -436,7 +436,7 @@ test-suite Prelude.Parallel
436 type: exitcode-stdio-1.0
436 type: exitcode-stdio-1.0
437 main-is: Streamly/Test/Prelude/Parallel.hs
437 main-is: Streamly/Test/Prelude/Parallel.hs
438 ghc-options: -main-is Streamly.Test.Prelude.Parallel.main
438 ghc-options: -main-is Streamly.Test.Prelude.Parallel.main
439− if flag(use-streamly-core)
439+ if flag(use-streamly-core) || impl(ghc >= 9.6)
440 buildable: False
440 buildable: False
442test-suite Prelude.Rate
442test-suite Prelude.Rate
@@ -458,14 +458,14 @@ test-suite Prelude.Serial
458 ghc-options: -main-is Streamly.Test.Prelude.Serial.main
458 ghc-options: -main-is Streamly.Test.Prelude.Serial.main
459 if flag(limit-build-mem)
459 if flag(limit-build-mem)
460 ghc-options: +RTS -M1500M -RTS
460 ghc-options: +RTS -M1500M -RTS
461− if flag(use-streamly-core)
461+ if flag(use-streamly-core) || impl(ghc >= 9.6)
462 buildable: False
462 buildable: False
464test-suite Prelude.Top
464test-suite Prelude.Top
465 import: test-options
465 import: test-options
466 type: exitcode-stdio-1.0
466 type: exitcode-stdio-1.0
467 main-is: Streamly/Test/Prelude/Top.hs
467 main-is: Streamly/Test/Prelude/Top.hs
468− if flag(use-streamly-core)
468+ if flag(use-streamly-core) || impl(ghc >= 9.6)
469 buildable: False
469 buildable: False
471test-suite Prelude.WAsync
471test-suite Prelude.WAsync
@@ -473,7 +473,7 @@ test-suite Prelude.WAsync
473 type: exitcode-stdio-1.0
473 type: exitcode-stdio-1.0
474 main-is: Streamly/Test/Prelude/WAsync.hs
474 main-is: Streamly/Test/Prelude/WAsync.hs
475 ghc-options: -main-is Streamly.Test.Prelude.WAsync.main
475 ghc-options: -main-is Streamly.Test.Prelude.WAsync.main
476− if flag(use-streamly-core)
476+ if flag(use-streamly-core) || impl(ghc >= 9.6)
477 buildable: False
477 buildable: False
479test-suite Prelude.WSerial
479test-suite Prelude.WSerial
@@ -481,7 +481,7 @@ test-suite Prelude.WSerial
481 type: exitcode-stdio-1.0
481 type: exitcode-stdio-1.0
482 main-is: Streamly/Test/Prelude/WSerial.hs
482 main-is: Streamly/Test/Prelude/WSerial.hs
483 ghc-options: -main-is Streamly.Test.Prelude.WSerial.main
483 ghc-options: -main-is Streamly.Test.Prelude.WSerial.main
484− if flag(use-streamly-core)
484+ if flag(use-streamly-core) || impl(ghc >= 9.6)
485 buildable: False
485 buildable: False
487test-suite Prelude.ZipAsync
487test-suite Prelude.ZipAsync
@@ -491,7 +491,7 @@ test-suite Prelude.ZipAsync
491 ghc-options: -main-is Streamly.Test.Prelude.ZipAsync.main
491 ghc-options: -main-is Streamly.Test.Prelude.ZipAsync.main
492 if flag(limit-build-mem)
492 if flag(limit-build-mem)
493 ghc-options: +RTS -M750M -RTS
493 ghc-options: +RTS -M750M -RTS
494− if flag(use-streamly-core)
494+ if flag(use-streamly-core) || impl(ghc >= 9.6)
495 buildable: False
495 buildable: False
497test-suite Prelude.ZipSerial
497test-suite Prelude.ZipSerial
@@ -499,7 +499,7 @@ test-suite Prelude.ZipSerial
499 type: exitcode-stdio-1.0
499 type: exitcode-stdio-1.0
500 main-is: Streamly/Test/Prelude/ZipSerial.hs
500 main-is: Streamly/Test/Prelude/ZipSerial.hs
501 ghc-options: -main-is Streamly.Test.Prelude.ZipSerial.main
501 ghc-options: -main-is Streamly.Test.Prelude.ZipSerial.main
502− if flag(use-streamly-core)
502+ if flag(use-streamly-core) || impl(ghc >= 9.6)
503 buildable: False
503 buildable: False
505test-suite Unicode.Stream
505test-suite Unicode.Stream