Module
Concur.Core.Gen
- Package
- purescript-concur-core
- Repository
- purescript-concur/purescript-concur-core
#yieldAndThen Source
yieldAndThen :: forall v x a. x -> Widget v (Gen v x a) -> Gen v x a
Yield a value, and then continue
#genOrr Source
genOrr :: forall v a b. Monoid v => WidgetGen v a b -> Widget v (Either b a)
Collapse a Generator into one widget. For containers with dynamic children. Any new widgets generated are immediately inserted into the parent widget Returns either (Left b) when Gen ends, or Right a, when one of the children end.
#zipGenOrr Source
zipGenOrr :: forall v a b. Monoid v => WidgetGen v a b -> Widget v (Either b (Tuple Int a))
Like genOrr
, collapses a Generator into one widget.
However, any values returned by the children are tagged with an id (unique to this generator)
Any new widgets generated are immediately inserted into the parent widget
Returns either (Left b) when Gen ends, or (Tuple Int a), when one of the children end.
#mapYieldGenWidget Source
mapYieldGenWidget :: forall v x y a. (x -> y) -> GenWidget v x a -> GenWidget v y a
#mapContGenWidget Source
mapContGenWidget :: forall v x a b. (a -> b) -> GenWidget v x a -> GenWidget v x b
- Modules
- Concur.
Core - Concur.
Core. DOM - Concur.
Core. DevTools - Concur.
Core. Discharge - Concur.
Core. ElementBuilder - Concur.
Core. FRP - Concur.
Core. Gen - Concur.
Core. IsWidget - Concur.
Core. LiftWidget - Concur.
Core. Patterns - Concur.
Core. Props - Concur.
Core. Types - Control.
Cofree - Control.
MonadFix - Control.
MultiAlternative - Control.
ShiftMap