stream-0.1.0.0: Initial project template from stack

Safe HaskellNone
LanguageHaskell2010

Stream

Contents

Synopsis

Types

data StreamT o m r Source

Common

runStreamT :: Monad m => StreamT o m r -> m r Source

Sources

Pure

enumFromToS :: (Ord a, Enum a, Applicative m) => a -> a -> StreamT a m () Source

yieldS :: (Foldable f, Applicative m) => f o -> StreamT o m () Source

Transformers

Pure

mapS :: Applicative m => (a -> b) -> StreamT a m r -> StreamT b m r Source

Monadic

Sinks

Pure

foldlS :: Monad m => (accum -> a -> accum) -> accum -> StreamT a m r -> m accum Source

sumS :: (Monad m, Num a) => StreamT a m r -> m a Source

sinkListS :: Monad m => StreamT i m r -> m [i] Source

Monadic

mapM_S :: Monad m => (i -> m a) -> StreamT i m r -> m () Source

I/O

Textual

linesAsciiS :: Monad m => (accum -> StreamT ByteString m () -> StreamT o m accum) -> accum -> StreamT ByteString m r -> StreamT o m accum Source

Reexports

newtype Identity a :: * -> *

Identity functor and monad. (a non-strict monad)

Since: 4.8.0.0

Constructors

Identity 

Fields

runIdentity :: a
 

Instances

Monad Identity 
Functor Identity 
MonadFix Identity 
Applicative Identity 
Foldable Identity 
Traversable Identity 
Generic1 Identity 
MonadZip Identity 
Eq1 Identity 
Ord1 Identity 
Read1 Identity 
Show1 Identity 
Eq a => Eq (Identity a) 
Data a => Data (Identity a) 
Ord a => Ord (Identity a) 
Read a => Read (Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Show a => Show (Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Generic (Identity a) 
type Rep1 Identity = D1 D1Identity (C1 C1_0Identity (S1 S1_0_0Identity Par1)) 
type Rep (Identity a) = D1 D1Identity (C1 C1_0Identity (S1 S1_0_0Identity (Rec0 a)))