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.
docHead :: Doc -> (Maybe Char, Doc)ghc GHC.Utils.Ppr Get the first character of a document. We also return a new document, equivalent to the original one but faster to render. Use it to avoid work duplication.
sHeader :: Scheme -> PprColourghc GHC.Utils.Ppr.Colour No documentation available.
parseBoundedHeader :: (ToHttpApiData a, Bounded a, Enum a) => ByteString -> Either Text ahttp-api-data Web.HttpApiData Parse values based on ToHttpApiData instance. Uses toHeader to get possible values.
parseHeader :: FromHttpApiData a => ByteString -> Either Text ahttp-api-data Web.HttpApiData Parse HTTP header value.
parseHeaderMaybe :: FromHttpApiData a => ByteString -> Maybe ahttp-api-data Web.HttpApiData Parse HTTP header value in a Maybe.
>>> parseHeaderMaybe "hello" :: Maybe Text Just "hello"
parseHeaderWithPrefix :: FromHttpApiData a => ByteString -> ByteString -> Either Text ahttp-api-data Web.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==")
toHeader :: ToHttpApiData a => a -> ByteStringhttp-api-data Web.HttpApiData Convert to HTTP header value.
parseBoundedHeader :: (ToHttpApiData a, Bounded a, Enum a) => ByteString -> Either Text ahttp-api-data Web.Internal.HttpApiData Parse values based on ToHttpApiData instance. Uses toHeader to get possible values.
parseHeader :: FromHttpApiData a => ByteString -> Either Text ahttp-api-data Web.Internal.HttpApiData Parse HTTP header value.
parseHeaderMaybe :: FromHttpApiData a => ByteString -> Maybe ahttp-api-data Web.Internal.HttpApiData Parse HTTP header value in a Maybe.
>>> parseHeaderMaybe "hello" :: Maybe Text Just "hello"