git.iko.soy/typeable/http-api-data
on master help sign in
Merge pull request #102 from antoine-fl/fix-doc
32bb258Oleg Grenrus
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