data Late : Type -> Type
- Totality: total
Visibility: public export
Constructors:
Now : a -> Late a
Later : Inf (Late a) -> Late a
Hints:
Applicative Late
Functor Late
Monad Late
never : Late a
Never return
Totality: total
Visibility: public exportunfold : (seed -> Either seed value) -> seed -> Late value
Run a small state machine until it reaches a final state and yields a value.
Totality: total
Visibility: public exportbind : Late a -> (a -> Late b) -> Late b
It's easier to define map and (<*>) in terms of bind so let's start
by defining it.
Totality: total
Visibility: public exportisNow : Late a -> Maybe a
Check whether we already have a value.
Totality: total
Visibility: public exportwait : Late a -> Late a
Wait for one tick, hoping to get a value.
Totality: total
Visibility: public exportengine : Nat -> Late a -> Late a
Wait for a set number of ticks.
Totality: total
Visibility: public exportpetrol : Nat -> Late a -> Maybe a
Wait for a set number of ticks, hoping to get a value.
Totality: total
Visibility: public exportaccelerate : Late a -> Late a
Accelerate makes things happen twice as fast.
Totality: total
Visibility: public export