Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data StreamT o m r
- runStreamT :: Monad m => StreamT o m r -> m r
- enumFromToS :: (Ord a, Enum a, Applicative m) => a -> a -> StreamT a m ()
- yieldS :: (Foldable f, Applicative m) => f o -> StreamT o m ()
- mapS :: Applicative m => (a -> b) -> StreamT a m r -> StreamT b m r
- foldlS :: Monad m => (accum -> a -> accum) -> accum -> StreamT a m r -> m accum
- sumS :: (Monad m, Num a) => StreamT a m r -> m a
- sinkListS :: Monad m => StreamT i m r -> m [i]
- mapM_S :: Monad m => (i -> m a) -> StreamT i m r -> m ()
- readFileS :: (MonadMask m, MonadIO m) => FilePath -> StreamT ByteString m ()
- writeFileS :: (MonadMask m, MonadIO m) => FilePath -> StreamT ByteString m () -> m ()
- linesAsciiS :: Monad m => (accum -> StreamT ByteString m () -> StreamT o m accum) -> accum -> StreamT ByteString m r -> StreamT o m accum
- newtype Identity a :: * -> * = Identity {
- runIdentity :: a
Types
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
Monadic
I/O
writeFileS :: (MonadMask m, MonadIO m) => FilePath -> StreamT ByteString m () -> m () Source
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
Identity | |
|
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
|
Show a => Show (Identity a) | This instance would be equivalent to the derived instances of the
|
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))) |