Add comment to routeLink
commitb483dceaf9c805c9dbdaa88a1860666f98ee434a
authorAli Abrar <aliabrar@gmail.com>
dateMon 29 Oct 2018, 18:03 (8 years ago)
parent75677a6
lib/route/src/Obelisk/Route/Frontend.hs+2
@@ -423,6 +423,8 @@ runRouteViewT routeEncoder a = do
423423 setState = attachWith f ((,) <$> current historyState <*> current route) changeState
424424 return result
425425
426+-- | A link widget that, when clicked, sets the route to the provided route. In non-javascript
427+-- contexts, this widget falls back to using @href@s to control navigation
426428routeLink
427429 :: forall t m a route.
428430 ( DomBuilder t m