Module
Flame.Types
- Package
- purescript-flame
- Repository
- easafe/purescript-flame
Types common to Flame modules
#PreApplication Source
type PreApplication model message = { init :: model, view :: model -> Html message }
PreApplication
contains
init
– the initial modelview
– a function to update your markup
#App Source
type App model message extension = { subscribe :: Array (Subscription message), view :: model -> Html message | extension }
Abstracts over common fields of an Application
#(:>) Source
Operator alias for Data.Tuple.Tuple (right-associative / precedence 6)
Infix tuple constructor
#ToNodeData Source
type ToNodeData value = forall message. value -> NodeData message
#ApplicationId Source
type ApplicationId = String
#Subscription Source
type Subscription message = Tuple3 Source EventName (Foreign -> message)
Subscriptions are events from outside the view, e.g. window
, document
or CustomEvent
#DomRenderingState Source
data DomRenderingState :: Type
FFI class that keeps track of DOM rendering
- 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