Copyright | (C) 2020 Peter Lu |
---|---|
License | see the file LICENSE |
Maintainer | pdlla <chippermonky@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
A dynamic seq which are a set of input and output events that wrap an internal 'Dynamic (Seq a)'.
Synopsis
- data DynamicSeq t a = DynamicSeq {
- _dynamicSeq_inserted :: Event t (Int, Seq a)
- _dynamicSeq_removed :: Event t (Int, Seq a)
- _dynamicSeq_contents :: Dynamic t (Seq a)
- data DynamicSeqConfig t a = DynamicSeqConfig {
- _dynamicSeqConfig_insert :: Event t (Int, Seq a)
- _dynamicSeqConfig_remove :: Event t (Int, Int)
- _dynamicSeqConfig_clear :: Event t ()
- defaultDynamicSeqConfig :: Reflex t => DynamicSeqConfig t a
- dynamicSeq_attachEndPos :: Reflex t => DynamicSeq t a -> Event t b -> Event t (Int, b)
- holdDynamicSeq :: forall t m a. (Reflex t, MonadHold t m, MonadFix m) => Seq a -> DynamicSeqConfig t a -> m (DynamicSeq t a)
Documentation
data DynamicSeq t a Source #
DynamicSeq | |
|
data DynamicSeqConfig t a Source #
The interface only supports adding and removing several consecutive elements. Use with 'singleton x' to add single elements.
DynamicSeqConfig | |
|
defaultDynamicSeqConfig :: Reflex t => DynamicSeqConfig t a Source #
dynamicSeq_attachEndPos :: Reflex t => DynamicSeq t a -> Event t b -> Event t (Int, b) Source #
use for inserting at end of seq
holdDynamicSeq :: forall t m a. (Reflex t, MonadHold t m, MonadFix m) => Seq a -> DynamicSeqConfig t a -> m (DynamicSeq t a) Source #
create a dynamic list