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. assertHeader :: HasCallStack => CI ByteString -> ByteString -> YesodExample site ()

    yesod-test Yesod.Test

    Assert the given header key/value pair was returned.

    Examples

    {-# LANGUAGE OverloadedStrings #-}
    get HomeR
    assertHeader "key" "value"
    
    import qualified Data.CaseInsensitive as CI
    import qualified Data.ByteString.Char8 as BS8
    getHomeR
    assertHeader (CI.mk (BS8.pack "key")) (BS8.pack "value")
    

  2. assertNoHeader :: HasCallStack => CI ByteString -> YesodExample site ()

    yesod-test Yesod.Test

    Assert the given header was not included in the response.

    Examples

    {-# LANGUAGE OverloadedStrings #-}
    get HomeR
    assertNoHeader "key"
    
    import qualified Data.CaseInsensitive as CI
    import qualified Data.ByteString.Char8 as BS8
    getHomeR
    assertNoHeader (CI.mk (BS8.pack "key"))
    

  3. contentTypeHeaderIsUtf8 :: ByteString -> Bool

    yesod-test Yesod.Test.Internal

    Helper function to determine if we can print a body as plain text, for debugging purposes.

  4. data ASN1Header

    asn1-types Data.ASN1.Types.Lowlevel

    ASN1 Header with the class, tag, constructed flag and length.

  5. ASN1Header :: ASN1Class -> ASN1Tag -> Bool -> ASN1Length -> ASN1Header

    asn1-types Data.ASN1.Types.Lowlevel

    No documentation available.

  6. unsafeHead :: Bytes -> Word8

    byteslice Data.Bytes

    Access the first byte. The given Bytes must be non-empty.

  7. hLookAhead :: Handle -> IO Char

    ghc-internal GHC.Internal.IO.Handle

    Computation hLookAhead returns the next character from the handle without removing it from the input buffer, blocking until a character is available. This operation may fail with:

  8. hLookAhead_ :: Handle__ -> IO Char

    ghc-internal GHC.Internal.IO.Handle.Internals

    No documentation available.

  9. hLookAhead :: Handle -> IO Char

    ghc-internal GHC.Internal.System.IO

    Computation hLookAhead returns the next character from the handle without removing it from the input buffer, blocking until a character is available. This operation may fail with:

  10. unsafeHead :: Source r e => Vector r e -> e

    massiv Data.Massiv.Array.Unsafe

    No documentation available.

Page 196 of many | Previous | Next