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.
-
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.
-
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.
-
yesod-form Yesod.Form.Input Promote a Field into a FormInput, requiring that the value be present and valid.
MsgValueRequired :: FormMessageyesod-form Yesod.Form.Types No documentation available.
fvRequired :: FieldView site -> Boolyesod-form Yesod.Form.Types No documentation available.
type
RequestBuilder site = SIO RequestBuilderData siteyesod-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.
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")
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.
assertEqual :: (HasCallStack, Eq a) => String -> a -> a -> YesodExample site ()yesod-test Yesod.Test Deprecated: Use assertEq instead
assertEqualNoShow :: (HasCallStack, Eq a) => String -> a -> a -> YesodExample site ()yesod-test Yesod.Test Asserts that the two given values are equal.