Safe Haskell | None |
---|---|
Language | Haskell2010 |
- setUrl :: MonadWidget t m => Event t String -> m ()
- getWindowLocation :: Window -> IO String
- js_windowLocationPathname :: JSVal -> IO JSVal
- setupHistoryHandler :: Window -> (String -> IO ()) -> IO ()
- js_setupHistoryHandler :: JSVal -> Callback (JSVal -> IO ()) -> IO ()
- routeSite :: (String -> Widget Spider (Gui Spider (WithWebView SpiderHost) SpiderHostFrame) (Event Spider String)) -> IO ()
Documentation
getWindowLocation :: Window -> IO String Source
setupHistoryHandler :: Window -> (String -> IO ()) -> IO () Source
routeSite :: (String -> Widget Spider (Gui Spider (WithWebView SpiderHost) SpiderHostFrame) (Event Spider String)) -> IO () Source
Handles routing for a site. The argument to this function is a widget function with the effective type signature `String -> m (Event t String)`. The String parameter is the initial value of the window location pathname. The return value is an event that updates the window location. routeSite :: (forall t m a. (MonadWidget t m) => (String -> m (Event t String))) -> IO ()