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
37#if __GLASGOW_HASKELL__ < 808
38import Data.Semigroup (Semigroup(..))
40import GHC.Exts (IsList(..))
41import Streamly.Data.Stream (Stream)
43import qualified Streamly.Data.Stream as Stream
45import Prelude hiding (map)
48-- >>> import qualified Streamly.Data.Stream as Stream
50------------------------------------------------------------------------------
52------------------------------------------------------------------------------
56-- | A serial IO stream of elements of type @a@. See 'SerialT' documentation
59-- /Since: 0.2.0 ("Streamly")/
62type Serial = SerialT IO
64------------------------------------------------------------------------------
66------------------------------------------------------------------------------
69serial :: SerialT m a -> SerialT m a -> SerialT m a
80-- > S.toList $ S.map (+1) $ S.fromList [1,2,3]
86map :: Monad m => (a -> b) -> SerialT m a -> SerialT m b
87map 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