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.

  1. package classy-prelude-yesod

    Provide a classy prelude including common Yesod functionality. See docs and README at http://www.stackage.org/package/classy-prelude-yesod

  2. defaultYesodMiddleware :: Yesod site => HandlerFor site res -> HandlerFor site res

    classy-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

  3. getSubYesod :: MonadHandler m => m (SubHandlerSite m)

    classy-prelude-yesod ClassyPrelude.Yesod

    No documentation available.

  4. getYesod :: MonadHandler m => m (HandlerSite m)

    classy-prelude-yesod ClassyPrelude.Yesod

    Get the master site application argument.

  5. getsYesod :: MonadHandler m => (HandlerSite m -> a) -> m a

    classy-prelude-yesod ClassyPrelude.Yesod

    Get a specific component of the master site application argument. Analogous to the gets function for operating on StateT.

  6. 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".

  7. 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.

  8. mkYesodDataOpts :: RouteOpts -> String -> [ResourceTree String] -> Q [Dec]

    classy-prelude-yesod ClassyPrelude.Yesod

    mkYesodData but with custom options.

  9. mkYesodDispatch :: String -> [ResourceTree String] -> Q [Dec]

    classy-prelude-yesod ClassyPrelude.Yesod

    See mkYesodData.

  10. mkYesodDispatchOpts :: RouteOpts -> String -> [ResourceTree String] -> Q [Dec]

    classy-prelude-yesod ClassyPrelude.Yesod

    See mkYesodDataOpts

Page 21 of many | Previous | Next