Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- mkRouteNameCaseExp :: [ResourceTree String] -> Q Exp
Documentation
mkRouteNameCaseExp :: [ResourceTree String] -> Q Exp Source #
Lambdacase expression to print route names
It has the following type:
_ :: Route a -> String
It produces code like:
\case RoutePiece a -> case a of RouteResource{} -> "ResourceName"