Module

Jelly.Data.Jelly

Package
purescript-jelly
Repository
yukikurage/purescript-jelly

#JellyId Source

newtype JellyId

Constructors

#alone Source

alone :: forall a. Jelly a -> Effect a

Convert Jelly to Effect, dependencies are no longer tracked.

#runJelly Source

runJelly :: forall a. Observer -> Jelly a -> Effect a

[Internal] Run a Jelly with a context and observer.

#newJelly Source

newJelly :: forall m a. MonadEffect m => Eq a => a -> m ((Jelly a) /\ ((a -> a) -> Jelly Unit))

Make new Jelly State.

#newJellies Source

newJellies :: forall m a. MonadEffect m => Eq a => Int -> a -> m ((Array (Jelly a)) /\ (Array ((a -> a) -> Jelly Unit)))

Make new Jelly States.

#addCleaner Source

addCleaner :: Jelly Unit -> Jelly Unit

Add Cleaner. This will be called when the Jelly is destroyed.

#launchJelly Source

launchJelly :: Jelly Unit -> Jelly JellyId

Launch a Jelly. Launched Jellyuns when dependant state changes.

#launchJelly_ Source

launchJelly_ :: Jelly Unit -> Jelly Unit

launchJelly without JellyId

#stopJelly Source

stopJelly :: forall m. MonadEffect m => JellyId -> m Unit

stop Jelly