Hoogle Search
Within LTS Haskell 24.5 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Provide a classy prelude including common Yesod functionality. See docs and README at http://www.stackage.org/package/classy-prelude-yesod
defaultYesodMiddleware :: Yesod site => HandlerFor site res -> HandlerFor site resclassy-prelude-yesod ClassyPrelude.Yesod Default implementation of yesodMiddleware. Adds the response header "Vary: Accept, Accept-Language", "X-XSS-Protection: 1; mode=block", and performs authorization checks. Since 1.2.0
getSubYesod :: MonadHandler m => m (SubHandlerSite m)classy-prelude-yesod ClassyPrelude.Yesod No documentation available.
getYesod :: MonadHandler m => m (HandlerSite m)classy-prelude-yesod ClassyPrelude.Yesod Get the master site application argument.
getsYesod :: MonadHandler m => (HandlerSite m -> a) -> m aclassy-prelude-yesod ClassyPrelude.Yesod Get a specific component of the master site application argument. Analogous to the gets function for operating on StateT.
mkYesod :: String -> [ResourceTree String] -> Q [Dec]classy-prelude-yesod ClassyPrelude.Yesod Generates URL datatype and site function for the given Resources. This is used for creating sites, not subsites. See mkYesodSubData and mkYesodSubDispatch for the latter. Use parseRoutes to create the Resources. Contexts and type variables in the name of the datatype are parsed. For example, a datatype App a with typeclass constraint MyClass a can be written as "(MyClass a) => App a".
mkYesodData :: String -> [ResourceTree String] -> Q [Dec]classy-prelude-yesod ClassyPrelude.Yesod Sometimes, you will want to declare your routes in one file and define your handlers elsewhere. For example, this is the only way to break up a monolithic file into smaller parts. Use this function, paired with mkYesodDispatch, to do just that.
mkYesodDataOpts :: RouteOpts -> String -> [ResourceTree String] -> Q [Dec]classy-prelude-yesod ClassyPrelude.Yesod mkYesodData but with custom options.
mkYesodDispatch :: String -> [ResourceTree String] -> Q [Dec]classy-prelude-yesod ClassyPrelude.Yesod See mkYesodData.
mkYesodDispatchOpts :: RouteOpts -> String -> [ResourceTree String] -> Q [Dec]classy-prelude-yesod ClassyPrelude.Yesod See mkYesodDataOpts