Module
Pha.App.Router
- Package
- purescript-pha
- Repository
- gbagan/purescript-pha
#appWithRouter Source
appWithRouter :: forall effs state msg. AppWithRouter msg state effs -> AppBuilder msg state
#AppWithRouter Source
type AppWithRouter msg state effs = { init :: Url -> Tuple state (Update state effs), interpreter :: Interpreter effs, onUrlChange :: Url -> msg, onUrlRequest :: UrlRequest -> msg, subscriptions :: state -> Array (Sub msg), update :: msg -> Update state effs, view :: state -> Document msg }