Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

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

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

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

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

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

  5. data WidgetData site

    yesod-core Yesod.Core.Types

    No documentation available.

  6. WidgetData :: {-# UNPACK #-} !IORef (GWData (Route site)) -> {-# UNPACK #-} !HandlerData site site -> WidgetData site

    yesod-core Yesod.Core.Types

    No documentation available.

  7. newtype WidgetFor site a

    yesod-core Yesod.Core.Types

    A generic widget, allowing specification of both the subsite and master site datatypes. While this is simply a WriterT, we define a newtype for better error messages.

  8. WidgetFor :: (WidgetData site -> IO a) -> WidgetFor site a

    yesod-core Yesod.Core.Types

    No documentation available.

  9. ghsIdent :: GHState -> !Int

    yesod-core Yesod.Core.Types

    No documentation available.

  10. tellWidget :: GWData (Route site) -> WidgetFor site ()

    yesod-core Yesod.Core.Types

    No documentation available.

Page 628 of many | Previous | Next