Skip to content

Commit b2e386a

Browse files
Simplify the signature of iterateMapLeftsWith
1 parent 1a934e1 commit b2e386a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • src/Streamly/Internal/Data/Stream/IsStream

src/Streamly/Internal/Data/Stream/IsStream/Expand.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,10 +1163,10 @@ iterateSmapMWith combine f initial stream =
11631163
--
11641164
{-# INLINE iterateMapLeftsWith #-}
11651165
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-
-> t m (Either a b)
1166+
:: (IsStream t, b ~ Either a c)
1167+
=> (t m b -> t m b -> t m b)
1168+
-> (a -> t m b)
1169+
-> t m b
1170+
-> t m b
11711171
iterateMapLeftsWith combine f =
11721172
iterateMapWith combine (either f (const IsStream.nil))

0 commit comments

Comments
 (0)