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.
parseHeaderWithPrefix :: FromHttpApiData a => ByteString -> ByteString -> Either Text ahttp-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==")
parseQueryParamWithPrefix :: FromHttpApiData a => Text -> Text -> Either Text ahttp-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
parseUrlPieceWithPrefix :: FromHttpApiData a => Text -> Text -> Either Text ahttp-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)
namePrefix :: Name -> Maybe Textxml-conduit Text.XML No documentation available.
-
No documentation available.
-
No documentation available.
-
No documentation available.
FixedSeed :: Int -> SeedSettingsydtest Test.Syd.Run No documentation available.
-
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.
-
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.