Module
Flame
- Package
- purescript-flame
- Repository
- easafe/purescript-flame
Entry module for a default Flame application
Re-exports from Flame.Application.EffectList  
#ResumedApplication Source
type ResumedApplication model message = App model message (init :: Array (Aff (Maybe message)), update :: ListUpdate model message)ResumedApplication contains
- init– initial list of messages to invoke- updatewith
- view– a function to update your markup
- update– a function to update your model
- subscribe– list of external events
#ListUpdate Source
type ListUpdate model message = model -> message -> Tuple model (Array (Aff (Maybe message)))#Application Source
type Application model message = App model message (init :: Tuple model (Array (Aff (Maybe message))), update :: ListUpdate model message)Application contains
- init– the initial model and a list of messages to invoke- updatewith
- view– a function to update your markup
- update– a function to update your model
- subscribe– list of external events
#resumeMount_ Source
resumeMount_ :: forall message model. UnserializeState model => QuerySelector -> ResumedApplication model message -> Effect UnitMount a Flame application on the given selector which was rendered server-side
#resumeMount Source
resumeMount :: forall message model id. UnserializeState model => Show id => QuerySelector -> AppId id message -> ResumedApplication model message -> Effect UnitMount on the given selector a Flame application which was rendered server-side and can be fed arbitrary external messages
#noMessages Source
noMessages :: forall message model. model -> Tuple model (Array (Aff (Maybe message)))#mount_ Source
mount_ :: forall message model. QuerySelector -> Application model message -> Effect UnitMount a Flame application on the given selector
#mount Source
mount :: forall message model id. Show id => QuerySelector -> AppId id message -> Application model message -> Effect UnitMount a Flame application that can be fed arbitrary external messages
Re-exports from Flame.Application.Internal.PreMount   
#preMount Source
preMount :: forall message model. SerializeState model => QuerySelector -> PreApplication model message -> Effect StringRe-exports from Flame.Types 
#Subscription Source
type Subscription message = Tuple3 Source EventName (Foreign -> message)Subscriptions are events from outside the view, e.g. window, document or CustomEvent
#PreApplication Source
type PreApplication model message = { init :: model, view :: model -> Html message }PreApplication contains
- init– the initial model
- view– a function to update your markup
#(:>) Source
Operator alias for Data.Tuple.Tuple (right-associative / precedence 6)
Infix tuple constructor
Re-exports from Web.DOM.ParentNode  
#QuerySelector Source
- Modules
- Flame
- Flame.Application. EffectList 
- Flame.Application. Effectful 
- Flame.Application. Internal. Dom 
- Flame.Application. Internal. PreMount 
- Flame.Application. NoEffects 
- Flame.Html. Attribute 
- Flame.Html. Attribute. Internal 
- Flame.Html. Element 
- Flame.Html. Event 
- Flame.Internal. Equality 
- Flame.Renderer. Internal. Dom 
- Flame.Renderer. String 
- Flame.Serialization 
- Flame.Subscription 
- Flame.Subscription. Document 
- Flame.Subscription. Internal. Create 
- Flame.Subscription. Internal. Listener 
- Flame.Subscription. Unsafe. CustomEvent 
- Flame.Subscription. Window 
- Flame.Types