@@ -134,8 +134,8 @@ infixr 5 |:
134class IsStream t where
134class IsStream t where
135 toStream :: t m a -> S.Stream m a
135 toStream :: t m a -> S.Stream m a
136 fromStream :: S.Stream m a -> t m a
136 fromStream :: S.Stream m a -> t m a
137− -- | Constructs a stream by adding a monadic action at the head of an existing
137+ -- | Constructs a stream by adding a monadic action at the head of an
138− -- stream. For example:
138+ -- existing stream. For example:
141 -- > toList $ getLine \`consM` getLine \`consM` nil
141 -- > toList $ getLine \`consM` getLine \`consM` nil
@@ -148,7 +148,8 @@ class IsStream t where
149 -- @since 0.2.0
149 -- @since 0.2.0
150 consM :: MonadAsync m => m a -> t m a -> t m a
150 consM :: MonadAsync m => m a -> t m a -> t m a
151− -- | Operator equivalent of 'consM'.
151+ -- | Operator equivalent of 'consM'. We can read it as "@parallel colon@"
152+ -- to remember that @|@ comes before ':'.
154 -- > toList $ getLine |: getLine |: nil
155 -- > toList $ getLine |: getLine |: nil