Module

Flame.Application.NoEffects

Package
purescript-flame
Repository
easafe/purescript-flame

Run a Flame application without side effects

The update function is a pure function from model and message raised

#Application Source

type Application model message = App model message (init :: model, update :: model -> message -> model)

Application contains

  • init – the initial model
  • view – a function to update your markup
  • update – a function to update your model
  • inputs – an array of signals

#emptyApp Source

emptyApp :: Application Unit Unit

A bare bones application

#mount Source

mount :: forall message model. String -> Application model message -> Effect Unit

Mount a Flame application in the given selector