freckle-app-1.20.3.0: Haskell application toolkit used at Freckle
Safe HaskellSafe-Inferred
LanguageGHC2021

Freckle.App.Yesod.Routes

Synopsis

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"