Safe Haskell | None |
---|---|
Language | Haskell2010 |
Type-safe routes
Documentation
class IsRoute (r :: Type -> Type) where Source #
A route is a GADT representing individual routes.
The GADT type parameter represents the data used to render that particular route.
routeFile :: MonadThrow m => r a -> m (Path Rel File) Source #
Return the filepath (relative ribInputDir
) where the
generated content for this route should be written.
routeUrlRel :: IsRoute r => r a -> Text Source #
The relative URL to this route