Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype NEStream f m a = NEStream (f (Stream f m a))
- toStream :: (Functor f, Monad m) => NEStream f m r -> Stream f m r
- fold1 :: Monad m => (a -> a -> a) -> NEStream (Of a) m r -> m (Of a r)
- sconcat :: (Semigroup a, Monad m) => NEStream (Of a) m r -> m (Of a r)
- toNonEmpty :: Monad m => NEStream (Of a) m r -> m (Of (NonEmpty a) r)
- toNonEmpty_ :: Monad m => NEStream (Of a) m r -> m (NonEmpty a)
- sconcat_ :: (Monad m, Semigroup a) => NEStream (Of a) m r -> m a
- groupBy :: Monad m => (a -> a -> Bool) -> Stream (Of a) m r -> Stream (NEStream (Of a) m) m r
- groupByPure :: (a -> a -> Bool) -> [a] -> [NonEmpty a]
- groupSemigroupBy :: (Semigroup a, Monad m) => (a -> a -> Bool) -> Stream (Of a) m r -> Stream (Of a) m r
- groupSemigroupByPure :: Semigroup b => (b -> b -> Bool) -> [b] -> [b]
Documentation
sconcat :: (Semigroup a, Monad m) => NEStream (Of a) m r -> m (Of a r) Source #
sconcat as in Semigroup
, with result
toNonEmpty :: Monad m => NEStream (Of a) m r -> m (Of (NonEmpty a) r) Source #
harvest the list with the result
groupBy :: Monad m => (a -> a -> Bool) -> Stream (Of a) m r -> Stream (NEStream (Of a) m) m r Source #
group by some equality in non empty groups
groupByPure :: (a -> a -> Bool) -> [a] -> [NonEmpty a] Source #
what groupBy could be