Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setNormalization :: Bool -> Collator -> Collator

    unicode-collation Text.Collate

    The Unicode Collation Algorithm expects input to be normalized into its canonical decomposition (NFD). By default, collators perform this normalization. If your input is already normalized, you can increase performance by disabling this step: setNormalization False.

  2. setUpperBeforeLower :: Bool -> Collator -> Collator

    unicode-collation Text.Collate

    Most collations default to sorting lowercase letters before uppercase (exceptions: mt, da, cu). To select the opposite behavior, use setUpperBeforeLower True.

  3. setVariableWeighting :: VariableWeighting -> Collator -> Collator

    unicode-collation Text.Collate

    Set method for handling variable elements (punctuation and spaces): see http://www.unicode.org/reports/tr10/, Tables 11 and 12.

  4. setDescription :: Handler h m => Description -> h a a

    webgear-core WebGear.Core.Handler

    Set a description of a part of an API

  5. setSummary :: Handler h m => Summary -> h a a

    webgear-core WebGear.Core.Handler

    Set a summary of a part of an API

  6. setTrait :: forall (ts :: [Type]) . Set h t => t -> (With Response ts -> Response -> Attribute t Response -> With Response (t ': ts)) -> h (With Response ts, Attribute t Response) (With Response (t ': ts))

    webgear-core WebGear.Core.Trait

    Set a trait attribute t on the value Response `With` ts.

  7. setBody :: forall body mt h (ts :: [Type]) . (Sets h '[Body mt body, RequiredResponseHeader "Content-Type" Text], MIMEType mt) => mt -> h (With Response ts, body) (With Response (Body mt body ': (RequiredResponseHeader "Content-Type" Text ': ts)))

    webgear-core WebGear.Core.Trait.Body

    Set the response body along with a media type. The MIME type mt is used to set the "Content-Type" header in the response. Usage:

    let body :: SomeJSONType = ...
    response' <- setBody JSON -< (response, body)
    

  8. setBodyWithoutContentType :: forall h (ts :: [Type]) . Set h UnknownContentBody => h (With Response ts, ResponseBody) (With Response (UnknownContentBody ': ts))

    webgear-core WebGear.Core.Trait.Body

    Set the response body without specifying any media type. Usage:

    let body :: ResponseBody = ...
    response' <- setBodyWithoutContentType -< (response, body)
    

  9. setCookie :: forall (name :: Symbol) h (ts :: [Type]) . Set h (SetCookie 'Required name) => h (With Response ts, SetCookie) (With Response (SetCookie 'Required name ': ts))

    webgear-core WebGear.Core.Trait.Cookie

    Set a cookie value in a response. Example usage:

    response' <- setCookie @"name" -< (response, cookie)
    

  10. setOptionalCookie :: forall (name :: Symbol) h (ts :: [Type]) . Set h (SetCookie 'Optional name) => h (With Response ts, Maybe SetCookie) (With Response (SetCookie 'Optional name ': ts))

    webgear-core WebGear.Core.Trait.Cookie

    Set an optional cookie value in a response. Setting the cookie to Nothing will remove it from the response if it was previously set. The cookie will be considered as optional in all relevant places (such as documentation). Example usage:

    response' <- setOptionalCookie @"name" -< (response, cookie)
    

Page 433 of many | Previous | Next