@@ -127,9 +127,10 @@ import Test.Hspec
127127import Test.QuickCheck (Property, choose, forAll, withMaxSuccess)
128128import Test.QuickCheck.Monadic (assert, monadicIO, run)
129129
130−import Streamly.Prelude
131− ( SerialT, IsStream, (.:), nil, (|&), serially, avgRate, rate, maxBuffer
132− , maxThreads, maxBuffer)
130+import Streamly.Prelude (SerialT, IsStream, (.:), nil, (|&), serially)
131+#ifndef COVERAGE_BUILD
132+import Streamly.Prelude (avgRate, rate, maxBuffer, maxThreads)
133+#endif
133134import qualified Streamly.Prelude as S
134135import qualified Streamly.Data.Fold as FL
135136import qualified Streamly.Internal.Data.Fold as FL
@@ -1710,7 +1711,11 @@ folded =
17101711 [x] -> return x -- singleton stream case
17111712 _ -> S.concatMapFoldableWith (<>) return xs)
17121713
1714+#ifndef COVERAGE_BUILD
17131715makeCommonOps :: IsStream t => (t m a -> c) -> [(String, t m a -> c)]
1716+#else
1717+makeCommonOps :: b -> [(String, b)]
1718+#endif
17141719makeCommonOps t =
17151720 [ ("default", t)
17161721#ifndef COVERAGE_BUILD
@@ -1723,7 +1728,11 @@ makeCommonOps t =
17231728#endif
17241729 ]
17251730
1731+#ifndef COVERAGE_BUILD
17261732makeOps :: IsStream t => (t m a -> c) -> [(String, t m a -> c)]
1733+#else
1734+makeOps :: b -> [(String, b)]
1735+#endif
17271736makeOps t = makeCommonOps t ++
17281737 [
17291738#ifndef COVERAGE_BUILD