Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Types
data Next item result Source #
A basic dynamic interface for a possibly-finite stream
Once End
is returned from a Next
request, it is expected that the stream
will thenceforth return End
and perform no side effects in response to any
subsequent Next
requests.
Instances
TerminableStream item (Next item) Source # | |
The result obtained from a Next
request
Item item | An item obtained from the stream |
End | Indicates that the stream has ended and there are no more items |
Instances
Foldable Step Source # | |
Defined in Next.Interface.Type fold :: Monoid m => Step m -> m # foldMap :: Monoid m => (a -> m) -> Step a -> m # foldMap' :: Monoid m => (a -> m) -> Step a -> m # foldr :: (a -> b -> b) -> b -> Step a -> b # foldr' :: (a -> b -> b) -> b -> Step a -> b # foldl :: (b -> a -> b) -> b -> Step a -> b # foldl' :: (b -> a -> b) -> b -> Step a -> b # foldr1 :: (a -> a -> a) -> Step a -> a # foldl1 :: (a -> a -> a) -> Step a -> a # elem :: Eq a => a -> Step a -> Bool # maximum :: Ord a => Step a -> a # | |
Traversable Step Source # | |
Functor Step Source # | |
Show item => Show (Step item) Source # | |
Eq item => Eq (Step item) Source # | |
Ord item => Ord (Step item) Source # | |
Defined in Next.Interface.Type |