git.iko.soy/typeable/http-api-data
on master help sign in
Fix documentation of parseBoundedEnumOf
commit4509ed65aab43fd528f41fff3a4996ceb0c98f84 authorantoine-fl <antoine.vandecreme@fretlink.com> dateWed 26 Aug 2020, 10:40 (6 years ago) parente4f2957
1 file changed+1−1
src/Web/Internal/HttpApiData.hs+1−1
src/Web/Internal/HttpApiData.hs+1−1
@@ -334,7 +334,7 @@ lookupBoundedEnumOf f = flip lookup (map (f &&& id) [minBound..maxBound])
334334-- >>> parseBoundedEnumOf toUrlPiece "true" :: Either Text Bool
335335-- Right True
336336--
337−-- For case sensitive parser see 'parseBoundedEnumOfI'.
337+-- For case insensitive parser see 'parseBoundedEnumOfI'.
338338parseBoundedEnumOf :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text a
339339parseBoundedEnumOf = parseMaybeTextData . lookupBoundedEnumOf
340340