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.

  1. data FormOptions

    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})
    

  2. FormOptions :: (String -> String) -> FormOptions

    http-api-data Web.Internal.FormUrlEncoded

    No documentation available.

  3. module Data.Constraint.Forall

    This module uses a trick to provide quantification over constraints.

  4. type Forall1 (p :: k -> Constraint) = Forall p

    constraints Data.Constraint.Forall

    No documentation available.

  5. 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).

  6. 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).

  7. type family ForallV :: k -> Constraint

    constraints Data.Constraint.Forall

    A representation of the quantified constraint forall a1 a2 ... an . p a1 a2 ... an, supporting a variable number of parameters.

  8. module Network.Wai.Middleware.ForceDomain

    No documentation available.

  9. module Network.Wai.Middleware.ForceSSL

    Redirect non-SSL requests to https Since 3.0.7

  10. module Test.Hspec.Core.Format

    This is an unstable API. Use Test.Hspec.Api.Format.V2 instead.

Page 261 of many | Previous | Next