Hoogle Search

Within LTS Haskell 24.25 (ghc-9.10.3)

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

  1. parseHeaderWithPrefix :: FromHttpApiData a => ByteString -> ByteString -> Either Text a

    http-api-data Web.Internal.HttpApiData

    Parse given bytestring then parse the rest of the input using parseHeader.

    data BasicAuthToken = BasicAuthToken Text deriving (Show)
    
    instance FromHttpApiData BasicAuthToken where
    parseHeader h     = BasicAuthToken <$> parseHeaderWithPrefix "Basic " h
    parseQueryParam p = BasicAuthToken <$> parseQueryParam p
    
    >>> parseHeader "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" :: Either Text BasicAuthToken
    Right (BasicAuthToken "QWxhZGRpbjpvcGVuIHNlc2FtZQ==")
    

  2. parseQueryParamWithPrefix :: FromHttpApiData a => Text -> Text -> Either Text a

    http-api-data Web.Internal.HttpApiData

    Case insensitive. Parse given text case insensitive and then parse the rest of the input using parseQueryParam.

    >>> parseQueryParamWithPrefix "z" "z10" :: Either Text Int
    Right 10
    

  3. parseUrlPieceWithPrefix :: FromHttpApiData a => Text -> Text -> Either Text a

    http-api-data Web.Internal.HttpApiData

    Case insensitive. Parse given text case insensitive and then parse the rest of the input using parseUrlPiece.

    >>> parseUrlPieceWithPrefix "Just " "just 10" :: Either Text Int
    Right 10
    
    >>> parseUrlPieceWithPrefix "Left " "left" :: Either Text Bool
    Left "could not parse: `left'"
    
    This can be used to implement FromHttpApiData for single field constructors:
    >>> data Foo = Foo Int deriving (Show)
    
    >>> instance FromHttpApiData Foo where parseUrlPiece s = Foo <$> parseUrlPieceWithPrefix "Foo " s
    
    >>> parseUrlPiece "foo 1" :: Either Text Foo
    Right (Foo 1)
    

  4. namePrefix :: Name -> Maybe Text

    xml-conduit Text.XML

    No documentation available.

  5. module Control.Monad.Fix

    No documentation available.

  6. module Data.Fixed

    No documentation available.

  7. module Data.Time.Clock.POSIX

    No documentation available.

  8. FixedSeed :: Int -> SeedSetting

    sydtest Test.Syd.Run

    No documentation available.

  9. package unix-compat

    Portable POSIX-compatibility layer. This package provides portable implementations of parts of the unix package. This package re-exports the unix package when available. When it isn't available, portable implementations are used.

  10. module System.PosixCompat

    The unix-compat package provides portable implementations of parts of the unix package. On POSIX system it re-exports operations from the unix package, on other platforms it emulates the operations as far as possible.

Page 98 of many | Previous | Next