Copyright | (C) 2016-2018 David M. Johnson |
---|---|
License | BSD3-style (see the file LICENSE) |
Maintainer | David M. Johnson <djohnson.m@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
runRoute :: (HasURI m, HasRouter m layout) => Proxy layout -> RouteT m layout a -> m -> Either RoutingError a Source #
Use a handler to route a location, represented as a String
.
All handlers must, in the end, return m a
.
routeLoc
will choose a route and return its result.
data RoutingError Source #
When routing, the router may fail to match a location.