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.Internal.Data.Stream (Stream)
42import qualified Streamly.Internal.Data.Stream as Stream
44import Prelude hiding (map)
47-- >>> import qualified Streamly.Data.Stream as Stream
49------------------------------------------------------------------------------
51------------------------------------------------------------------------------
55-- | A serial IO stream of elements of type @a@. See 'SerialT' documentation
58-- /Since: 0.2.0 ("Streamly")/
61type Serial = SerialT IO
63------------------------------------------------------------------------------
65------------------------------------------------------------------------------
68serial :: SerialT m a -> SerialT m a -> SerialT m a
79-- > S.toList $ S.map (+1) $ S.fromList [1,2,3]
85map :: Monad m => (a -> b) -> SerialT m a -> SerialT m b
86map 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