Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. wreq :: forall site (m :: Type -> Type) a . (RenderMessage site FormMessage, HandlerSite m ~ site, MonadHandler m) => Field m a -> FieldSettings site -> Maybe a -> WForm m (FormResult a)

    yesod-form Yesod.Form.Functions

    Converts a form field into monadic form WForm. This field requires a value and will return FormFailure if left empty.

  2. wreqMsg :: forall site msg (m :: Type -> Type) a . (RenderMessage site msg, HandlerSite m ~ site, MonadHandler m) => Field m a -> FieldSettings site -> msg -> Maybe a -> WForm m (FormResult a)

    yesod-form Yesod.Form.Functions

    Same as wreq but with your own message to be rendered in case the value is not provided. This is useful when you have several required fields on the page and you want to differentiate between which fields were left blank. Otherwise the user sees "Value is required" multiple times, which is ambiguous.

  3. ireq :: forall (m :: Type -> Type) a . (Monad m, RenderMessage (HandlerSite m) FormMessage) => Field m a -> Text -> FormInput m a

    yesod-form Yesod.Form.Input

    Promote a Field into a FormInput, requiring that the value be present and valid.

  4. MsgValueRequired :: FormMessage

    yesod-form Yesod.Form.Types

    No documentation available.

  5. fvRequired :: FieldView site -> Bool

    yesod-form Yesod.Form.Types

    No documentation available.

  6. type RequestBuilder site = SIO RequestBuilderData site

    yesod-test Yesod.Test

    The RequestBuilder state monad constructs a URL encoded string of arguments to send with your requests. Some of the functions that run on it use the current response to analyze the forms that the server is expecting to receive.

  7. addRequestHeader :: Header -> RequestBuilder site ()

    yesod-test Yesod.Test

    Adds the given header to the request; see Network.HTTP.Types.Header for creating Headers.

    Examples

    import Network.HTTP.Types.Header
    request $ do
    addRequestHeader (hUserAgent, "Chrome/41.0.2228.0")
    

  8. assertEq :: (HasCallStack, Eq a, Show a) => String -> a -> a -> YesodExample site ()

    yesod-test Yesod.Test

    Asserts that the two given values are equal. In case they are not equal, the error message includes the two values.

  9. assertEqual :: (HasCallStack, Eq a) => String -> a -> a -> YesodExample site ()

    yesod-test Yesod.Test

    Deprecated: Use assertEq instead

  10. assertEqualNoShow :: (HasCallStack, Eq a) => String -> a -> a -> YesodExample site ()

    yesod-test Yesod.Test

    Asserts that the two given values are equal.

Page 328 of many | Previous | Next