Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
classy-prelude-yesod ClassyPrelude.Yesod How to allocate an InternalState for each request. The default implementation is almost always what you want. However, if you know that you are never taking advantage of the MonadResource instance in your handler functions, setting this to a dummy implementation can provide a small optimization. Only do this if you really know what you're doing, otherwise you can turn safe code into a runtime error! Since 1.4.2
-
Server-sent events support for Yesod apps. API docs and the README are available at http://www.stackage.org/package/yesod-eventsource
-
renderBootstrap4 renderBootstrap4
-
Host content provided by a Git repo Please see the README and generated docs at https://www.stackage.org/package/yesod-gitrepo
-
yesod recaptcha2 It support new Google reCAPTCHA(v2, v3) for yesod-form instead yesod-recaptcha beacuse original yesod-recaptcha is dead.
-
Generate XML sitemaps. API docs and the README are available at http://www.stackage.org/package/yesod-sitemap
-
WebSockets support for Yesod API docs and the README are available at http://www.stackage.org/package/yesod-websockets
defaultYesodMiddleware :: Yesod site => HandlerFor site res -> HandlerFor site resyesod-core Yesod.Core 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
mkYesod :: String -> [ResourceTree String] -> Q [Dec]yesod-core Yesod.Core.Dispatch 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]yesod-core Yesod.Core.Dispatch 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.