Skip to content

Commit

Permalink
Generalize type signature of usingStateT
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpashman authored Jan 6, 2025
1 parent 17848f2 commit c459071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/Streamly/Internal/Data/Stream/Transformer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ runStateT initial (Stream step state) = Stream step' (state, initial)
usingStateT
:: Monad m
=> m s
-> (Stream (StateT s m) a -> Stream (StateT s m) a)
-> Stream m a
-> (Stream (StateT s m) a -> Stream (StateT s m) b)
-> Stream m a
-> Stream m b
usingStateT s f = evalStateT s . f . liftInner

0 comments on commit c459071

Please sign in to comment.