@@ -111,18 +111,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
111-- and merging of streams. It can be considered as a concurrent list
111-- and merging of streams. It can be considered as a concurrent list
112-- transformer.
112-- transformer.
114−-- The basic stream type is 'Serial', it represents a sequence of IO actions,
115−-- and is a 'Monad'. The 'Serial' monad is almost a drop in replacement for
116−-- the 'IO' monad, IO monad is a special case of the 'Serial' monad; IO monad
117−-- represents a single IO action whereas the 'Serial' monad represents a series
118−-- of IO actions. The only change you need to make to go from 'IO' to 'Serial'
119−-- is to use 'drain' to run the monad and to prefix the IO actions with
120−-- either 'fromEffect' or 'liftIO'. If you use liftIO you can switch from 'Serial'
121−-- to IO monad by simply removing the 'drain' function; no other changes
122−-- are needed unless you have used some stream specific composition or
125−-- Similarly, the 'Serial' type is almost a drop in replacement for pure lists,
114+-- The 'Serial' type is almost a drop in replacement for pure lists,
126-- pure lists are a special case of monadic streams. If you use 'nil' in place
115-- pure lists are a special case of monadic streams. If you use 'nil' in place
127-- of '[]' and '|:' in place ':' you can replace a list with a 'Serial' stream.
116-- of '[]' and '|:' in place ':' you can replace a list with a 'Serial' stream.
128-- The only difference is that the elements must be monadic type and to operate
117-- The only difference is that the elements must be monadic type and to operate