Module
WAGS.Control.Thunkable
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
#Thunkable Source
data Thunkable a
Thunkable is the Trampoline
moand with some extra typeclasses like Alt
and Plus
and some extra utility methods for thunking.
Constructors
Instances
(Semigroup a) => Semigroup (Thunkable a)
Foldable Thunkable
Traversable Thunkable
(Monoid a) => Monoid (Thunkable a)
(Semiring a) => Semiring (Thunkable a)
(Ring a) => Ring (Thunkable a)
Functor Thunkable
Apply Thunkable
Applicative Thunkable
Bind Thunkable
Monad Thunkable
Alt Thunkable
Plus Thunkable
Alternative Thunkable
Waitable Thunkable
Waitable (MemoizedStateT proof s Thunkable)
#runThunkable Source
runThunkable :: forall a. Thunkable a -> a
Runs a thunkable to produce an a
. Same as runTrampoline
.
#runThunkableWithCount Source
runThunkableWithCount :: forall a. Thunkable a -> Tuple Int a
Runs a thunkable to produce an a
, counting how many "thunks" were needed.
#thunkThunkable Source
thunkThunkable :: forall a. Thunkable a -> Thunkable a
Thunks a thunkable once, producing a new thunkable. Same as runFree
.
#monadifyThunkable Source
monadifyThunkable :: forall m. Monad m => Thunkable ~> m
A natural transformation from Thunkable
to any monad m
. Same as foldFree
.
#intercalateThunkable Source
intercalateThunkable :: forall m. Monad m => m Unit -> Thunkable ~> m
A natural transformation from Thunkable
to any monad m
that inserts m Unit
in between thunks.
- Modules
- FRP.
Event. MIDI - WAGS.
Change - WAGS.
Connect - WAGS.
Control. Functions - WAGS.
Control. MemoizedState - WAGS.
Control. Qualified - WAGS.
Control. Thunkable - WAGS.
Control. Types - WAGS.
Create - WAGS.
Cursor - WAGS.
Debug - WAGS.
Destroy - WAGS.
Disconnect - WAGS.
Graph. Constructors - WAGS.
Graph. Decorators - WAGS.
Graph. Getter - WAGS.
Graph. Optionals - WAGS.
Graph. Parameter - WAGS.
Interpret - WAGS.
Move - WAGS.
MoveNode - WAGS.
Rebase - WAGS.
Rendered - WAGS.
Run - WAGS.
Universe. AudioUnit - WAGS.
Universe. Bin - WAGS.
Universe. BinN - WAGS.
Universe. EdgeProfile - WAGS.
Universe. Graph - WAGS.
Universe. Node - WAGS.
Universe. Skolems - WAGS.
Universe. Universe - WAGS.
Util - WAGS.
Validation