on master help sign in
Remove stale info in the tutorial
commite629a34c1a19df8211c3849a56fd2bb5490b2b71 authorAdithya Kumar <adithya@composewell.com> dateMon 15 Nov 2021, 22:50 (5 years ago) parent5d34729
1 file changed+1−12
docs/Tutorial.hs+1−12
docs/Tutorial.hs+1−12
@@ -111,18 +111,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
111111-- and merging of streams. It can be considered as a concurrent list
112112-- transformer.
113113--
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
123−-- combinators.
124−--
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,
126115-- pure lists are a special case of monadic streams. If you use 'nil' in place
127116-- of '[]' and '|:' in place ':' you can replace a list with a 'Serial' stream.
128117-- The only difference is that the elements must be monadic type and to operate