| Copyright | (C) 2016-2025 David M. Johnson |
|---|---|
| License | BSD3-style (see the file LICENSE) |
| Maintainer | David M. Johnson <code@dmj.io> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Miso.Subscription.History
Contents
Description
Subscription
uriSub :: (URI -> action) -> Sub action Source #
Subscription for popstate events, from the History API
routerSub :: Router route => (Either RoutingError route -> action) -> Sub action Source #
Subscription for popstate events, from the History API, mapped
to a user-defined Router
Functions
Retrieves the current relative URI by inspecting pathname, search
and hash.
replaceURI :: URI -> JSM () Source #
Replaces current URI on stack
Types
Type for dealing with URI. See the official specification
Constructors
| URI | |
Fields | |
Instances
| Show URI Source # | |
| Eq URI Source # | |
| ToMisoString URI Source # | |
Defined in Miso.Types Methods toMisoString :: URI -> MisoString Source # | |