reflex-0.4.0.1: Higher-order Functional Reactive Programming
Reflex.Spider
data Spider Source #
Instances
Associated Types
data Behavior Spider a :: * Source #
data Event Spider a :: * Source #
type PushM Spider :: * -> * Source #
type PullM Spider :: * -> * Source #
Methods
never :: Event Spider a Source #
constant :: a -> Behavior Spider a Source #
push :: (a -> PushM Spider (Maybe b)) -> Event Spider a -> Event Spider b Source #
pull :: PullM Spider a -> Behavior Spider a Source #
merge :: GCompare * k => DMap * k (Event Spider) -> Event Spider (DMap * k Identity) Source #
fan :: GCompare * k => Event Spider (DMap * k Identity) -> EventSelector Spider k Source #
switch :: Behavior Spider (Event Spider a) -> Event Spider a Source #
coincidence :: Event Spider (Event Spider a) -> Event Spider a Source #
type EventTrigger Spider :: * -> * Source #
type EventHandle Spider :: * -> * Source #
type HostFrame Spider :: * -> * Source #
hold :: a -> Event Spider a -> ReadPhase (Behavior Spider a) Source #
hold :: a -> Event Spider a -> SpiderHostFrame (Behavior Spider a) Source #
hold :: a -> Event Spider a -> SpiderHost (Behavior Spider a) Source #
hold :: a -> Event Spider a -> EventM (Behavior Spider a) Source #
sample :: Behavior Spider a -> ReadPhase a Source #
sample :: Behavior Spider a -> SpiderHostFrame a Source #
sample :: Behavior Spider a -> SpiderHost a Source #
sample :: Behavior Spider a -> EventM a Source #
sample :: Behavior Spider a -> BehaviorM a Source #
type ReadPhase (SpiderHost :: * -> *) :: * -> * Source #
fireEventsAndRead :: [DSum * (EventTrigger Spider) Identity] -> ReadPhase SpiderHost a -> SpiderHost a Source #
runHostFrame :: HostFrame Spider a -> SpiderHost a Source #
newEventWithTrigger :: (EventTrigger Spider a -> IO (IO ())) -> SpiderHostFrame (Event Spider a) Source #
newFanEventWithTrigger :: GCompare * k => (forall a. k a -> EventTrigger Spider a -> IO (IO ())) -> SpiderHostFrame (EventSelector Spider k) Source #
newEventWithTrigger :: (EventTrigger Spider a -> IO (IO ())) -> SpiderHost (Event Spider a) Source #
newFanEventWithTrigger :: GCompare * k => (forall a. k a -> EventTrigger Spider a -> IO (IO ())) -> SpiderHost (EventSelector Spider k) Source #
readEvent :: EventHandle Spider a -> ReadPhase (Maybe (ReadPhase a)) Source #
subscribeEvent :: Event Spider a -> SpiderHostFrame (EventHandle Spider a) Source #
subscribeEvent :: Event Spider a -> SpiderHost (EventHandle Spider a) Source #
newtype SpiderHost a Source #
Constructors
Fields
(>>=) :: SpiderHost a -> (a -> SpiderHost b) -> SpiderHost b #
(>>) :: SpiderHost a -> SpiderHost b -> SpiderHost b #
return :: a -> SpiderHost a #
fail :: String -> SpiderHost a #
fmap :: (a -> b) -> SpiderHost a -> SpiderHost b #
(<$) :: a -> SpiderHost b -> SpiderHost a #
mfix :: (a -> SpiderHost a) -> SpiderHost a #
pure :: a -> SpiderHost a #
(<*>) :: SpiderHost (a -> b) -> SpiderHost a -> SpiderHost b #
(*>) :: SpiderHost a -> SpiderHost b -> SpiderHost b #
(<*) :: SpiderHost a -> SpiderHost b -> SpiderHost a #
liftIO :: IO a -> SpiderHost a #
throw :: Exception e => e -> SpiderHost a #
catch :: Exception e => SpiderHost a -> (e -> SpiderHost a) -> SpiderHost a #
finally :: SpiderHost a -> SpiderHost b -> SpiderHost a #
mask :: ((forall a. SpiderHost a -> SpiderHost a) -> SpiderHost b) -> SpiderHost b #
type Ref (SpiderHost :: * -> *) :: * -> * #
newRef :: a -> SpiderHost (Ref SpiderHost a) #
readRef :: Ref SpiderHost a -> SpiderHost a #
writeRef :: Ref SpiderHost a -> a -> SpiderHost () #
modifyRef :: Ref SpiderHost a -> (a -> a) -> SpiderHost () #
modifyRef' :: Ref SpiderHost a -> (a -> a) -> SpiderHost () #
atomicModifyRef :: Ref SpiderHost a -> (a -> (a, b)) -> SpiderHost b #
atomicModifyRef' :: Ref SpiderHost a -> (a -> (a, b)) -> SpiderHost b #