Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. hasValidCsrfHeaderNamed :: MonadHandler m => CI ByteString -> m Bool

    yesod-core Yesod.Core.Handler

    Takes a header name to lookup a CSRF token, and returns whether the value matches the token stored in the session.

  2. hasValidCsrfParamNamed :: MonadHandler m => Text -> m Bool

    yesod-core Yesod.Core.Handler

    Takes a POST parameter name to lookup a CSRF token, and returns whether the value matches the token stored in the session.

  3. invalidArgs :: MonadHandler m => [Text] -> m a

    yesod-core Yesod.Core.Handler

    Return a 400 invalid arguments page.

  4. invalidArgsI :: (MonadHandler m, RenderMessage (HandlerSite m) msg) => [msg] -> m a

    yesod-core Yesod.Core.Handler

    Return a 400 invalid arguments page.

  5. newIdent :: MonadHandler m => m Text

    yesod-core Yesod.Core.Handler

    Get a unique identifier.

  6. provideRep :: (Monad m, HasContentType a) => m a -> Writer (Endo [ProvidedRep m]) ()

    yesod-core Yesod.Core.Handler

    Provide a single representation to be used, based on the request of the client. Should be used together with selectRep.

  7. provideRepType :: (Monad m, ToContent a) => ContentType -> m a -> Writer (Endo [ProvidedRep m]) ()

    yesod-core Yesod.Core.Handler

    Same as provideRep, but instead of determining the content type from the type of the value itself, you provide the content type separately. This can be a convenience instead of creating newtype wrappers for uncommonly used content types.

    provideRepType "application/x-special-format" "This is the content"
    

  8. provideJson :: forall (m :: Type -> Type) a . (Monad m, ToJSON a) => a -> Writer (Endo [ProvidedRep m]) ()

    yesod-core Yesod.Core.Json

    Provide a JSON representation for usage with selectReps, using aeson's toJSON (aeson >= 0.11: toEncoding) function to perform the conversion.

  9. InvalidArgs :: [Text] -> ErrorResponse

    yesod-core Yesod.Core.Types

    Indicates some sort of invalid or missing argument, like a missing query parameter or malformed JSON body. Examples Yesod functions that send this include requireCheckJsonBody and Yesod.Auth.GoogleEmail2. HTTP status: 400.

  10. data WidgetData site

    yesod-core Yesod.Core.Types

    No documentation available.

Page 627 of many | Previous | Next