Module

Flame.Types

Package
purescript-flame
Repository
easafe/purescript-flame

Types common to Flame modules

#PreApplication Source

type PreApplication model message = { model :: model, view :: model -> Html message }

PreApplication contains

  • model – the initial model
  • view – a function to update your markup

#ToNodeData Source

type ToNodeData value = forall message. value -> NodeData message

#Tag Source

type Tag = String

#Key Source

type Key = String

#AppId Source

newtype AppId :: forall k. Type -> k -> Typenewtype AppId a b

Constructors

#ApplicationId Source

#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

FFI class that keeps track of DOM rendering

#Source Source

#EventName Source

#DomNode Source

data DomNode

A make believe type for DOM nodes

Instances

#NodeData Source

data NodeData t0

Attributes and properties of virtual nodes

#Html Source

data Html t0

The type of virtual nodes

Instances