git.iko.soy/typeable/http-api-data
on master help sign in
Merge pull request #102 from antoine-fl/fix-doc

Fix documentation of parseBoundedEnumOf

commit32bb258f5d22a6eefe634b65dbf4d4dcb421cd23 authorOleg Grenrus <oleg.grenrus@iki.fi> dateWed 26 Aug 2020, 13:02 (6 years ago) parente4f29574509ed6
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