Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
http-api-data Web.FormUrlEncoded The contents of a form, not yet URL-encoded. Form can be URL-encoded with urlEncodeForm and URL-decoded with urlDecodeForm.
Form :: HashMap Text [Text] -> Formhttp-api-data Web.FormUrlEncoded No documentation available.
-
http-api-data Web.FormUrlEncoded Generic-based deriving options for ToForm and FromForm. A common use case for non-default FormOptions is to strip a prefix off of field labels:
data Project = Project { projectName :: String , projectSize :: Int } deriving (Generic, Show) myOptions :: FormOptions myOptions = FormOptions { fieldLabelModifier = map toLower . drop (length "project") } instance ToForm Project where toForm = genericToForm myOptions instance FromForm Project where fromForm = genericFromForm myOptions>>> urlEncodeAsFormStable Project { projectName = "http-api-data", projectSize = 172 } "name=http-api-data&size=172" >>> urlDecodeAsForm "name=http-api-data&size=172" :: Either Text Project Right (Project {projectName = "http-api-data", projectSize = 172}) FormOptions :: (String -> String) -> FormOptionshttp-api-data Web.FormUrlEncoded No documentation available.
module Web.Internal.
FormUrlEncoded No documentation available.
-
http-api-data Web.Internal.FormUrlEncoded The contents of a form, not yet URL-encoded. Form can be URL-encoded with urlEncodeForm and URL-decoded with urlDecodeForm.
Form :: HashMap Text [Text] -> Formhttp-api-data Web.Internal.FormUrlEncoded No documentation available.
-
http-api-data Web.Internal.FormUrlEncoded Generic-based deriving options for ToForm and FromForm. A common use case for non-default FormOptions is to strip a prefix off of field labels:
data Project = Project { projectName :: String , projectSize :: Int } deriving (Generic, Show) myOptions :: FormOptions myOptions = FormOptions { fieldLabelModifier = map toLower . drop (length "project") } instance ToForm Project where toForm = genericToForm myOptions instance FromForm Project where fromForm = genericFromForm myOptions>>> urlEncodeAsFormStable Project { projectName = "http-api-data", projectSize = 172 } "name=http-api-data&size=172" >>> urlDecodeAsForm "name=http-api-data&size=172" :: Either Text Project Right (Project {projectName = "http-api-data", projectSize = 172}) FormOptions :: (String -> String) -> FormOptionshttp-api-data Web.Internal.FormUrlEncoded No documentation available.
-
This module uses a trick to provide quantification over constraints.