Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- browserHistoryWith :: (MonadJSM m, TriggerEvent t m, MonadHold t m) => (forall jsm. MonadJSM jsm => Location -> jsm a) -> m (Dynamic t a)
- getLocationAfterHost :: MonadJSM m => m Text
- getLocationFragment :: MonadJSM m => m Text
- getLocationHost :: MonadJSM m => m Text
- getLocationPath :: MonadJSM m => m Text
- getLocationProtocol :: MonadJSM m => m Text
- getLocationUrl :: MonadJSM m => m Text
- manageHistory :: (MonadJSM m, TriggerEvent t m, MonadHold t m, PerformEvent t m, MonadJSM (Performable m)) => Event t HistoryCommand -> m (Dynamic t HistoryItem)
- data HistoryCommand
- data HistoryStateUpdate = HistoryStateUpdate {}
- data HistoryItem = HistoryItem {}
- getLocationUri :: MonadJSM m => Location -> m URI
Documentation
:: (MonadJSM m, TriggerEvent t m, MonadHold t m) | |
=> (forall jsm. MonadJSM jsm => Location -> jsm a) | A function to encode the window location in a more useful form (e.g. |
-> m (Dynamic t a) |
Builds a Dynamic carrying the current window location.
getLocationAfterHost :: MonadJSM m => m Text Source #
Returns the URI-decoded location after the host and port; i.e. returns the path, query, and fragment of the location.
getLocationFragment :: MonadJSM m => m Text Source #
Returns the URI-decoded fragment/hash of the current window location.
getLocationHost :: MonadJSM m => m Text Source #
Returns the host of the current window location
getLocationPath :: MonadJSM m => m Text Source #
Returns the URI-decoded path of the current window location.
getLocationProtocol :: MonadJSM m => m Text Source #
Returns the protocol/scheme (e.g. http:
or https:
) of the current window location
getLocationUrl :: MonadJSM m => m Text Source #
Returns the full URI-decoded URL of the current window location.
manageHistory :: (MonadJSM m, TriggerEvent t m, MonadHold t m, PerformEvent t m, MonadJSM (Performable m)) => Event t HistoryCommand -> m (Dynamic t HistoryItem) Source #
data HistoryCommand Source #
data HistoryStateUpdate Source #
HistoryStateUpdate | |
|
data HistoryItem Source #
HistoryItem | |
|