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. type ForeignFieldDef = (FieldNameHS, FieldNameDB)

    persistent Database.Persist.Types

    Used instead of FieldDef to generate a smaller amount of code

  2. ForeignRef :: EntityNameHS -> ReferenceDef

    persistent Database.Persist.Types

    A ForeignRef has a late binding to the EntityDef it references via name and has the Haskell type of the foreign key in the form of FieldType

  3. module Web.FormUrlEncoded

    Convert Haskell values to and from application/xxx-form-urlencoded format.

  4. 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.

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

    http-api-data Web.FormUrlEncoded

    No documentation available.

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

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

    http-api-data Web.FormUrlEncoded

    No documentation available.

  8. module Web.Internal.FormUrlEncoded

    No documentation available.

  9. 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.

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

    http-api-data Web.Internal.FormUrlEncoded

    No documentation available.

Page 260 of many | Previous | Next