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 model
  • view – 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

#Tag Source

type Tag = String

#Key Source

type Key = String

#AppId Source

newtype 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 :: Type

FFI class that keeps track of DOM rendering

#Source Source

#EventName Source

#DomNode Source

data DomNode :: Type

A make believe type for DOM nodes

#NodeData Source

data NodeData :: Type -> Type

Attributes and properties of virtual nodes

#Html Source

data Html :: Type -> Type

The type of virtual nodes

Instances