Safe Haskell | None |
---|---|
Language | GHC2021 |
Test.Credit.Deque.Streams
Documentation
data Stream (m :: Type -> Type) a Source #
Instances
(MonadMemory m, MemoryCell m a) => MemoryCell m (Stream m a) Source # | |
Defined in Test.Credit.Deque.Streams Methods prettyCell :: Stream m a -> m Memory Source # |
data SLazyCon (m :: Type -> Type) a where Source #
Constructors
SAppend :: forall (m :: Type -> Type) a1. Stream m a1 -> Stream m a1 -> SLazyCon m (Stream m a1) | |
SRevDrop :: forall (m :: Type -> Type) a1. Int -> Stream m a1 -> Stream m a1 -> SLazyCon m (Stream m a1) | |
STake :: forall (m :: Type -> Type) a1. Int -> Stream m a1 -> SLazyCon m (Stream m a1) |
Instances
MonadInherit m => HasStep (SLazyCon m :: Type -> Type) (m :: Type -> Type) Source # | |
Defined in Test.Credit.Deque.Streams | |
(MonadMemory m, MemoryCell m a) => MemoryCell m (SLazyCon m a) Source # | |
Defined in Test.Credit.Deque.Streams Methods prettyCell :: SLazyCon m a -> m Memory Source # |
Arguments
:: MonadInherit m | |
=> Stream m a | Scrutinee |
-> (a -> Stream m a -> m b) | Cons case |
-> m b | Nil case |
-> m b |
Smart destructor for streams, consuming one credit