2-- Module : Streamly.Internal.Data.Stream.Serial
3-- Copyright : (c) 2017 Composewell Technologies
6-- Maintainer : streamly@composewell.com
7-- Stability : experimental
10-- To run examples in this module:
12-- >>> import qualified Streamly.Data.Stream as Stream
14module Streamly.Internal.Data.Stream.Serial
16 -- * Serial appending stream
37import GHC.Exts (IsList(..))
38import Streamly.Data.Stream (Stream)
40import qualified Streamly.Data.Stream as Stream
42import Prelude hiding (map)
45-- >>> import qualified Streamly.Data.Stream as Stream
47------------------------------------------------------------------------------
49------------------------------------------------------------------------------
53-- | A serial IO stream of elements of type @a@. See 'SerialT' documentation
56-- /Since: 0.2.0 ("Streamly")/
59type Serial = SerialT IO
61------------------------------------------------------------------------------
63------------------------------------------------------------------------------
66serial :: SerialT m a -> SerialT m a -> SerialT m a
77-- > S.toList $ S.map (+1) $ S.fromList [1,2,3]
83map :: Monad m => (a -> b) -> SerialT m a -> SerialT m b
84map f = Stream.mapM (return . f)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list