Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
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.
type
Forall1 (p :: k -> Constraint) = Forall pconstraints Data.Constraint.Forall No documentation available.
class Forall ComposeC p f =>
ForallF (p :: k2 -> Constraint) (f :: k1 -> k2)constraints Data.Constraint.Forall A representation of the quantified constraint forall a. p (f a).
class Forall Q p t =>
ForallT (p :: k4 -> Constraint) (t :: k1 -> k2 -> k3 -> k4)constraints Data.Constraint.Forall A representation of the quantified constraint forall f a. p (t f a).
type family
ForallV :: k -> Constraintconstraints Data.Constraint.Forall A representation of the quantified constraint forall a1 a2 ... an . p a1 a2 ... an, supporting a variable number of parameters.
module Network.Wai.Middleware.
ForceDomain No documentation available.
module Network.Wai.Middleware.
ForceSSL Redirect non-SSL requests to https Since 3.0.7
-
This is an unstable API. Use Test.Hspec.Api.Format.V2 instead.