Copyright | (C) 2020 Peter Lu |
---|---|
License | see the file LICENSE |
Maintainer | pdlla <chippermonky@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data DynamicList t a = DynamicList {
- _dynamicList_added :: Event t (Int, a)
- _dynamicList_removed :: Event t a
- _dynamicList_contents :: Dynamic t [a]
- data DynamicListConfig t a = DynamicListConfig {
- _dynamicListConfig_add :: Event t (Int, a)
- _dynamicListConfig_remove :: Event t Int
- _dynamicListConfig_push :: Event t a
- _dynamicListConfig_pop :: Event t ()
- _dynamicListConfig_enqueue :: Event t a
- _dynamicListConfig_dequeue :: Event t ()
- defaultDynamicListConfig :: Reflex t => DynamicListConfig t a
- holdDynamicList :: forall t m a. (Reflex t, MonadHold t m, MonadFix m) => [a] -> DynamicListConfig t a -> m (DynamicList t a)
Documentation
data DynamicList t a Source #
DynamicList | |
|
data DynamicListConfig t a Source #
DynamicListConfig | |
|
defaultDynamicListConfig :: Reflex t => DynamicListConfig t a Source #
:: (Reflex t, MonadHold t m, MonadFix m) | |
=> [a] | initial value |
-> DynamicListConfig t a | |
-> m (DynamicList t a) |
create a dynamic list