Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Builder collection mutCollection step state err a = Builder {
- runBuilder :: State (Offset step, BuildingState collection mutCollection step (PrimState state), Maybe err) state a
- data BuildingState collection mutCollection step state = BuildingState {
- prevChunks :: [collection]
- prevChunksSize :: !(CountOf step)
- curChunk :: mutCollection state
- chunkSize :: !(CountOf step)
Documentation
newtype Builder collection mutCollection step state err a Source #
Builder | |
|
Monad state => Monad (Builder collection mutCollection step state err) Source # | |
Monad state => Functor (Builder collection mutCollection step state err) Source # | |
Monad state => Applicative (Builder collection mutCollection step state err) Source # | |
Monad state => MonadFailure (Builder collection mutCollection step state err) Source # | |
type Failure (Builder collection mutCollection step state err) Source # | |
data BuildingState collection mutCollection step state Source #
The in-progress state of a building operation.
The previous buffers are in reverse order, and this contains the current buffer and the state of progress packing the elements inside.
BuildingState | |
|