We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 386afa4 + 0ac5102 commit 75501dcCopy full SHA for 75501dc
1 file changed
src/Streaming/Internal.hs
@@ -223,6 +223,14 @@ newtype ShowSWrapper = SS (Int -> ShowS)
223
instance Show ShowSWrapper where
224
showsPrec p (SS s) = s p
225
226
+-- | Operates covariantly on the stream result, not on its elements:
227
+--
228
+-- @
229
+-- Stream (Of a) m r
230
+-- ^ ^
231
+-- | `--- This is what `Functor` and `Applicative` use
232
+-- `--- This is what functions like S.map/S.zipWith use
233
234
instance (Functor f, Monad m) => Functor (Stream f m) where
235
fmap f = loop where
236
loop stream = case stream of
0 commit comments