Hoogle Search

Within LTS Haskell 24.58 (ghc-9.10.3)

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

  1. addHeader' :: forall (mods :: [Type]) (h :: Symbol) v orig new . AddHeader mods h v orig new => v -> orig -> new

    servant Servant.API.ResponseHeaders

    Same as addHeader but works with Header', so it's possible to use any mods.

  2. buildHeadersTo :: BuildHeadersTo hs => [Header] -> HList hs

    servant Servant.API.ResponseHeaders

    No documentation available.

  3. getHeaders :: GetHeaders ls => ls -> [Header]

    servant Servant.API.ResponseHeaders

    No documentation available.

  4. getHeadersHList :: Headers (ls :: [Type]) a -> HList ls

    servant Servant.API.ResponseHeaders

    HList of headers.

  5. lookupResponseHeader :: forall (h :: Symbol) a (headers :: [Type]) r . HasResponseHeader h a headers => Headers headers r -> ResponseHeader h a

    servant Servant.API.ResponseHeaders

    Look up a specific ResponseHeader, without having to know what position it is in the HList.

    >>> let example1 = addHeader 5 "hi" :: Headers '[Header "someheader" Int] String
    
    >>> let example2 = addHeader True example1 :: Headers '[Header "1st" Bool, Header "someheader" Int] String
    
    >>> lookupResponseHeader example2 :: ResponseHeader "someheader" Int
    Header 5
    
    >>> lookupResponseHeader example2 :: ResponseHeader "1st" Bool
    Header True
    
    Usage of this function relies on an explicit type annotation of the header to be looked up. This can be done with type annotations on the result, or with an explicit type application. In this example, the type of header value is determined by the type-inference, we only specify the name of the header:
    >>> :set -XTypeApplications
    
    >>> case lookupResponseHeader @"1st" example2 of { Header b -> b ; _ -> False }
    True
    

  6. noHeader :: forall (h :: Symbol) v orig new . AddHeader '[Optional, Strict] h v orig new => orig -> new

    servant Servant.API.ResponseHeaders

    Deliberately do not add a header to a value.

    >>> let example1 = noHeader "hi" :: Headers '[Header "someheader" Int] String
    
    >>> getHeaders example1
    []
    

  7. noHeader' :: forall (mods :: [Type]) (h :: Symbol) v orig new . AddHeader mods h v orig new => orig -> new

    servant Servant.API.ResponseHeaders

    Same as noHeader but works with Header', so it's possible to use any mods.

  8. thead :: Html -> Html

    blaze-html Text.Blaze.Html4.FrameSet

    Combinator for the <thead> element. Example:

    thead $ span $ toHtml "foo"
    
    Result:
    <thead><span>foo</span></thead>
    

  9. thead :: Html -> Html

    blaze-html Text.Blaze.Html4.Strict

    Combinator for the <thead> element. Example:

    thead $ span $ toHtml "foo"
    
    Result:
    <thead><span>foo</span></thead>
    

  10. thead :: Html -> Html

    blaze-html Text.Blaze.Html4.Transitional

    Combinator for the <thead> element. Example:

    thead $ span $ toHtml "foo"
    
    Result:
    <thead><span>foo</span></thead>
    

Page 148 of many | Previous | Next