Module

Pha.App

Package
purescript-pha
Repository
gbagan/purescript-pha

#app Source

app :: forall msg model. { init :: { model :: model, msg :: Maybe msg }, selector :: String, update :: msg -> Update model msg Aff Unit, view :: model -> Html msg } -> Effect Unit
app ∷ ∀msg model.
 { init ∷ {model ∷ model, msg ∷ Maybe msg}
 , view ∷ model → Html msg
 , update ∷ msg → Update model msg Aff Unit
 , selector ∷ String
 } → Effect Unit

#sandbox Source

sandbox :: forall msg model. { init :: model, selector :: String, update :: msg -> model -> model, view :: model -> Html msg } -> Effect Unit
sandbox ∷ ∀msg model. 
  { init ∷ model
  , view ∷ model → Html msg
  , update ∷ msg → model → model
  , selector ∷ String
  } → Effect Unit