We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a934e1 commit b2e386aCopy full SHA for b2e386a
1 file changed
src/Streamly/Internal/Data/Stream/IsStream/Expand.hs
@@ -1163,10 +1163,10 @@ iterateSmapMWith combine f initial stream =
1163
--
1164
{-# INLINE iterateMapLeftsWith #-}
1165
iterateMapLeftsWith
1166
- :: IsStream t
1167
- => (t m (Either a b) -> t m (Either a b) -> t m (Either a b))
1168
- -> (a -> t m (Either a b))
1169
- -> t m (Either a b)
1170
+ :: (IsStream t, b ~ Either a c)
+ => (t m b -> t m b -> t m b)
+ -> (a -> t m b)
+ -> t m b
1171
iterateMapLeftsWith combine f =
1172
iterateMapWith combine (either f (const IsStream.nil))
0 commit comments