@@ -53,17 +53,19 @@ import Web.HttpApiData.Internal
54-- >>> parseUrlPiece "false" :: Either Text Bool
54-- >>> parseUrlPiece "false" :: Either Text Bool
55-- Right False
55-- Right False
56−-- >>> parseUrlPiece "something else" :: Either Text Bool
56+-- >>> parseUrlPieces ["true", "false", "undefined"] :: Either Text [Bool]
57−-- Left "could not parse: `something else'"
57+-- Left "could not parse: `undefined'"
59-- Numbers:
59-- Numbers:
61−-- >>> toUrlPiece 45.2
61+-- >>> toQueryParam 45.2
63−-- >>> parseUrlPiece "452" :: Either Text Int
63+-- >>> parseQueryParam "452" :: Either Text Int
64-- Right 452
64-- Right 452
65+-- >>> toQueryParams [1..5]
66+-- ["1","2","3","4","5"]
65−-- >>> parseUrlPiece "256" :: Either Text Int8
67+-- >>> parseQueryParams ["127", "255"] :: Either Text [Int8]
66−-- Left "out of bounds: `256' (should be between -128 and 127)"
68+-- Left "out of bounds: `255' (should be between -128 and 127)"
68-- Strings:
70-- Strings:
@@ -78,3 +80,4 @@ import Web.HttpApiData.Internal
78-- "2015-10-03"
80-- "2015-10-03"
79-- >>> toGregorian <$> parseQueryParam "2016-12-01"
81-- >>> toGregorian <$> parseQueryParam "2016-12-01"
80-- Right (2016,12,1)
82-- Right (2016,12,1)