úÎS†N„Z      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYSafe135N%Parse value from HTTP API data.Parse URL path piece.Parse HTTP header value.Parse query param value.Convert value to HTTP API data.Convert to URL path piece.Convert to HTTP header value.Convert to query param value.0Convert multiple values to a list of URL pieces.toUrlPieces [1, 2, 3] ["1","2","3"] Parse multiple URL pieces.6parseUrlPieces ["true", "false"] :: Either Text [Bool]Right [True,False]=parseUrlPieces ["123", "hello", "world"] :: Either Text [Int]CLeft "could not parse: `hello' (input does not start with a digit)" <Convert multiple values to a list of query parameter values.BtoQueryParams [fromGregorian 2015 10 03, fromGregorian 2015 12 01]["2015-10-03","2015-12-01"]  Parse multiple query parameters.5parseQueryParams ["1", "2", "3"] :: Either Text [Int] Right [1,2,3]<parseQueryParams ["64", "128", "256"] :: Either Text [Word8]9Left "out of bounds: `256' (should be between 0 and 255)" Parse URL path piece in a Z.$parseUrlPieceMaybe "12" :: Maybe IntJust 12 Parse HTTP header value in a Z.&parseHeaderMaybe "hello" :: Maybe Text Just "hello"Parse query param value in a Z.)parseQueryParamMaybe "true" :: Maybe Bool Just TrueDefault parsing error.Convert Z parser into [ \# parser with default error message. Lower case.Convert to URL piece using ]- instance. The result is always lower cased.showTextData True"true"CThis can be used as a default implementation for enumeration types:-data MyData = Foo | Bar | Baz deriving (Show)=instance ToHttpApiData MyData where toUrlPiece = showTextDatatoUrlPiece Foo"foo"Like ^, but returns \.Case insensitive.NParse given text case insensitive and then parse the rest of the input using .<parseUrlPieceWithPrefix "Just " "just 10" :: Either Text IntRight 10:parseUrlPieceWithPrefix "Left " "left" :: Either Text BoolLeft "could not parse: `left'"This can be used to implement  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)>Parse given bytestring then parse the rest of the input using . îdata BasicAuthToken = BasicAuthToken Text deriving (Show) instance FromHttpApiData BasicAuthToken where parseHeader h = BasicAuthToken <$> parseHeaderWithPrefix "Basic " h parseQueryParam p = BasicAuthToken <$> parseQueryParam p NparseHeader "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" :: Either Text BasicAuthToken5Right (BasicAuthToken "QWxhZGRpbjpvcGVuIHNlc2FtZQ==")Case insensitive.NParse given text case insensitive and then parse the rest of the input using .6parseQueryParamWithPrefix "z" "z10" :: Either Text IntRight 10Case insensitive.)Parse values case insensitively based on ] instance./parseBoundedTextData "true" :: Either Text Bool Right True0parseBoundedTextData "FALSE" :: Either Text Bool Right FalseCThis can be used as a default implementation for enumeration types:<data MyData = Foo | Bar | Baz deriving (Show, Bounded, Enum)Jinstance FromHttpApiData MyData where parseUrlPiece = parseBoundedTextData)parseUrlPiece "foo" :: Either Text MyData Right FooParse URL piece using _ instance.+Use for types which do not involve letters:,readTextData "1991-06-02" :: Either Text DayRight 1991-06-021This parser is case sensitive and will not match  in presense of letters:4readTextData (showTextData True) :: Either Text BoolLeft "could not parse: `true'"See .Run ` as HTTP API data parser.Run `6 to parse bounded integral value with bounds checking./parseBounded decimal "256" :: Either Text Word89Left "out of bounds: `256' (should be between 0 and 255)"<parseUrlPiece "Right 123" :: Either Text (Either String Int)Right (Right 123)3parseUrlPiece "Just 123" :: Either Text (Maybe Int)Right (Just 123)#*toGregorian <$> parseUrlPiece "2016-12-01"Right (2016,12,1)6 Parsing a a' value is always an error, considering a% as a data type with no constructors.7%showVersion <$> parseUrlPiece "1.2.3" Right "1.2.3"9#parseUrlPiece "_" :: Either Text ()Right ():,toUrlPiece (Left "err" :: Either String Int) "left err")toUrlPiece (Right 3 :: Either String Int) "right 3";toUrlPiece (Just "Hello") "just Hello"F%toUrlPiece (fromGregorian 2015 10 03) "2015-10-03"W!toUrlPiece (Version [1, 2, 3] [])"1.2.3"Y toUrlPiece ()"_"Z  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXY Z YXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543210/.-,+*)('&%$#"! T  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYSafe   b      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_]`abcd]ef]eg]hibjk]lmnhttpa_2YqgMweuWEp3hzpp3TgW7gWeb.HttpApiData.InternalWeb.HttpApiDataFromHttpApiData parseUrlPiece parseHeaderparseQueryParam ToHttpApiData toUrlPiecetoHeader toQueryParam toUrlPiecesparseUrlPieces toQueryParamsparseQueryParamsparseUrlPieceMaybeparseHeaderMaybeparseQueryParamMaybedefaultParseErrorparseMaybeTextData showTextDatashowtparseUrlPieceWithPrefixparseHeaderWithPrefixparseQueryParamWithPrefixparseBoundedTextData readTextData runReader parseBounded$fFromHttpApiDataEither$fFromHttpApiDataMaybe$fFromHttpApiDataLast$fFromHttpApiDataFirst$fFromHttpApiDataProduct$fFromHttpApiDataSum$fFromHttpApiDataDual$fFromHttpApiDataAny$fFromHttpApiDataAll$fFromHttpApiDataDay$fFromHttpApiDataText$fFromHttpApiDataText0$fFromHttpApiData[]$fFromHttpApiDataWord64$fFromHttpApiDataWord32$fFromHttpApiDataWord16$fFromHttpApiDataWord8$fFromHttpApiDataWord$fFromHttpApiDataInteger$fFromHttpApiDataInt64$fFromHttpApiDataInt32$fFromHttpApiDataInt16$fFromHttpApiDataInt8$fFromHttpApiDataInt$fFromHttpApiDataFloat$fFromHttpApiDataDouble$fFromHttpApiDataOrdering$fFromHttpApiDataBool$fFromHttpApiDataVoid$fFromHttpApiDataVersion$fFromHttpApiDataChar$fFromHttpApiData()$fToHttpApiDataEither$fToHttpApiDataMaybe$fToHttpApiDataLast$fToHttpApiDataFirst$fToHttpApiDataProduct$fToHttpApiDataSum$fToHttpApiDataDual$fToHttpApiDataAny$fToHttpApiDataAll$fToHttpApiDataText$fToHttpApiDataText0$fToHttpApiData[]$fToHttpApiDataDay$fToHttpApiDataWord64$fToHttpApiDataWord32$fToHttpApiDataWord16$fToHttpApiDataWord8$fToHttpApiDataWord$fToHttpApiDataInteger$fToHttpApiDataInt64$fToHttpApiDataInt32$fToHttpApiDataInt16$fToHttpApiDataInt8$fToHttpApiDataInt$fToHttpApiDataFloat$fToHttpApiDataDouble$fToHttpApiDataOrdering$fToHttpApiDataBool$fToHttpApiDataVoid$fToHttpApiDataVersion$fToHttpApiDataChar$fToHttpApiData()baseGHC.BaseMaybe Data.EitherEithertext_1l1AN4I48k37RaQ6fm6CEhData.Text.InternalTextGHC.ShowShowshowGHC.ReadReadData.Text.ReadReader Data.VoidVoid