Module

PsSpa.Page

Package
purescript-ps-spa
Repository
the-man-with-a-golden-mind/ps-spa

#AdvancedConfig Source

type AdvancedConfig :: Type -> Type -> Type -> Type -> Type -> (Type -> Type) -> Typetype AdvancedConfig model msg shared route command subscription = { init :: Step model (Effect command shared route), subscriptions :: model -> Array (subscription msg), update :: msg -> model -> Step model (Effect command shared route), view :: model -> Document msg }

#ElementConfig Source

type ElementConfig :: Type -> Type -> Type -> (Type -> Type) -> Typetype ElementConfig model msg command subscription = { init :: Step model (Array command), subscriptions :: model -> Array (subscription msg), update :: msg -> model -> Step model (Array command), view :: model -> Document msg }

#Page Source

data Page :: Type -> Type -> Type -> Type -> Type -> (Type -> Type) -> Typedata Page model msg shared route command subscription

Constructors

#SandboxConfig Source

type SandboxConfig model msg = { init :: model, update :: msg -> model -> model, view :: model -> Document msg }

#StaticConfig Source

type StaticConfig msg = { view :: Document msg }

#Step Source

type Step model effect = { effect :: effect, model :: model }

#advanced Source

advanced :: forall model msg shared route command subscription. AdvancedConfig model msg shared route command subscription -> Page model msg shared route command subscription

#element Source

element :: forall model msg shared route command subscription. ElementConfig model msg command subscription -> Page model msg shared route command subscription

#sandbox Source

sandbox :: forall model msg shared route command subscription. SandboxConfig model msg -> Page model msg shared route command subscription

#static Source

static :: forall model msg shared route command subscription. StaticConfig msg -> Page model msg shared route command subscription