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

#Url Source

type Url = { hash :: String, host :: String, hostname :: String, href :: String, origin :: String, pathname :: String, port :: String, protocol :: String, search :: String }

#UrlRequest Source

#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 }