on master help sign in
Make aestetic changes to a few function signatures
b0ff88fAdithya Kumar
core/src/Streamly/Internal/Data/Stream/Transform.hs+4−4
@@ -891,7 +891,7 @@ indexedR n = fromStreamD . D.indexedR n . toStreamD
891--
891--
892{-# INLINE timestampWith #-}
892{-# INLINE timestampWith #-}
893timestampWith :: (MonadIO m)
893timestampWith :: (MonadIO m)
894− => Double -> Stream m a -> Stream m(AbsTime, a)
894+ => Double -> Stream m a -> Stream m (AbsTime, a)
895timestampWith g stream = zipWith (flip (,)) stream (absTimesWith g)
895timestampWith g stream = zipWith (flip (,)) stream (absTimesWith g)
896
896
897-- TBD: check performance vs a custom implementation without using zipWith.
897-- TBD: check performance vs a custom implementation without using zipWith.
@@ -900,7 +900,7 @@ timestampWith g stream = zipWith (flip (,)) stream (absTimesWith g)
900--
900--
901{-# INLINE timestamped #-}
901{-# INLINE timestamped #-}
902timestamped :: (MonadIO m)
902timestamped :: (MonadIO m)
903− => Stream m a -> Stream m(AbsTime, a)
903+ => Stream m a -> Stream m (AbsTime, a)
904timestamped = timestampWith 0.01
904timestamped = timestampWith 0.01
905
905
906-- | Pair each element in a stream with relative times starting from 0, using a
906-- | Pair each element in a stream with relative times starting from 0, using a
@@ -914,7 +914,7 @@ timestamped = timestampWith 0.01
914--
914--
915{-# INLINE timeIndexWith #-}
915{-# INLINE timeIndexWith #-}
916timeIndexWith :: (MonadIO m)
916timeIndexWith :: (MonadIO m)
917− => Double -> Stream m a -> Stream m(RelTime64, a)
917+ => Double -> Stream m a -> Stream m (RelTime64, a)
918timeIndexWith g stream = zipWith (flip (,)) stream (relTimesWith g)
918timeIndexWith g stream = zipWith (flip (,)) stream (relTimesWith g)
919
919
920-- | Pair each element in a stream with relative times starting from 0, using a
920-- | Pair each element in a stream with relative times starting from 0, using a
@@ -928,7 +928,7 @@ timeIndexWith g stream = zipWith (flip (,)) stream (relTimesWith g)
928--
928--
929{-# INLINE timeIndexed #-}
929{-# INLINE timeIndexed #-}
930timeIndexed :: (MonadIO m)
930timeIndexed :: (MonadIO m)
931− => Stream m a -> Stream m(RelTime64, a)
931+ => Stream m a -> Stream m (RelTime64, a)
932timeIndexed = timeIndexWith 0.01
932timeIndexed = timeIndexWith 0.01
933
933
934------------------------------------------------------------------------------
934------------------------------------------------------------------------------