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.
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.
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"
-
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.
InvalidArgs :: [Text] -> ErrorResponseyesod-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.
-
yesod-core Yesod.Core.Types No documentation available.
-
yesod-core Yesod.Core.Types No documentation available.
-
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.
WidgetFor :: (WidgetData site -> IO a) -> WidgetFor site ayesod-core Yesod.Core.Types No documentation available.
-
yesod-core Yesod.Core.Types No documentation available.
tellWidget :: GWData (Route site) -> WidgetFor site ()yesod-core Yesod.Core.Types No documentation available.