grapefruit-frp-0.1.0.7: Functional Reactive Programming core

Safe HaskellNone
LanguageHaskell98

FRP.Grapefruit.Signal.Incremental.Sequence

Contents

Synopsis

Diffs

data AtomicDiff el Source #

Constructors

Insertion Int (Seq el) 
Deletion Int Int 
Shift Int Int Int 
Update Int (Seq el) 

Instances

Functor AtomicDiff Source # 

Methods

fmap :: (a -> b) -> AtomicDiff a -> AtomicDiff b #

(<$) :: a -> AtomicDiff b -> AtomicDiff a #

insertion :: Int -> Seq el -> Diff (Seq el) Source #

deletion :: Int -> Int -> Diff (Seq el) Source #

shift :: Int -> Int -> Int -> Diff (Seq el) Source #

update :: Int -> Seq el -> Diff (Seq el) Source #

elementInsertion :: Int -> el -> Diff (Seq el) Source #

elementUpdate :: Int -> el -> Diff (Seq el) Source #

Construction

empty :: ISignal era (Seq a) Source #

singleton :: SSignal era el -> ISignal era (Seq el) Source #

(<|) :: SSignal era el -> ISignal era (Seq el) -> ISignal era (Seq el) Source #

(|>) :: ISignal era (Seq el) -> SSignal era el -> ISignal era (Seq el) Source #

Combination

(><) :: ISignal era (Seq el) -> ISignal era (Seq el) -> ISignal era (Seq el) Source #

Queries

null :: ISignal era (Seq el) -> SSignal era Bool Source #

length :: ISignal era (Seq el) -> SSignal era Int Source #

Transformations

map :: SSignal era (el -> el') -> ISignal era (Seq el) -> ISignal era (Seq el') Source #

staticMap :: (el -> el') -> ISignal era (Seq el) -> ISignal era (Seq el') Source #

filter :: SSignal era (el -> Bool) -> ISignal era (Seq el) -> ISignal era (Seq el) Source #

staticFilter :: (el -> Bool) -> ISignal era (Seq el) -> ISignal era (Seq el) Source #

reverse :: ISignal era (Seq el) -> ISignal era (Seq el) Source #

Orphan instances

Semigroup (Diff (Seq el)) Source # 

Methods

(<>) :: Diff (Seq el) -> Diff (Seq el) -> Diff (Seq el) #

sconcat :: NonEmpty (Diff (Seq el)) -> Diff (Seq el) #

stimes :: Integral b => b -> Diff (Seq el) -> Diff (Seq el) #

Monoid (Diff (Seq el)) Source # 

Methods

mempty :: Diff (Seq el) #

mappend :: Diff (Seq el) -> Diff (Seq el) -> Diff (Seq el) #

mconcat :: [Diff (Seq el)] -> Diff (Seq el) #

Incremental (Seq el) Source # 

Associated Types

data Diff (Seq el) :: * Source #

type ValidationState (Seq el) :: * Source #