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.

  1. newtype Form

    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.

  2. Form :: HashMap Text [Text] -> Form

    http-api-data Web.FormUrlEncoded

    No documentation available.

  3. data FormOptions

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

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

    http-api-data Web.FormUrlEncoded

    No documentation available.

  5. module Web.Internal.FormUrlEncoded

    No documentation available.

  6. newtype Form

    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.

  7. Form :: HashMap Text [Text] -> Form

    http-api-data Web.Internal.FormUrlEncoded

    No documentation available.

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

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

    http-api-data Web.Internal.FormUrlEncoded

    No documentation available.

  10. module Data.Constraint.Forall

    This module uses a trick to provide quantification over constraints.

Page 260 of many | Previous | Next