git.iko.soy/typeable/http-api-data
on master help sign in
Fix documentation of parseBoundedEnumOf
4509ed6antoine-fl
src/Web/Internal/HttpApiData.hs+1−1
@@ -334,7 +334,7 @@ lookupBoundedEnumOf f = flip lookup (map (f &&& id) [minBound..maxBound])
334-- >>> parseBoundedEnumOf toUrlPiece "true" :: Either Text Bool
334-- >>> parseBoundedEnumOf toUrlPiece "true" :: Either Text Bool
335-- Right True
335-- Right True
336--
336--
337−-- For case sensitive parser see 'parseBoundedEnumOfI'.
337+-- For case insensitive parser see 'parseBoundedEnumOfI'.
338parseBoundedEnumOf :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text a
338parseBoundedEnumOf :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text a
339parseBoundedEnumOf = parseMaybeTextData . lookupBoundedEnumOf
339parseBoundedEnumOf = parseMaybeTextData . lookupBoundedEnumOf
340
340