git.iko.soy/typeable/http-api-data
on master help sign in
Fix docs for FromHttpApiData Version
621e6f4Nickolay Kudasov
Web/HttpApiData.hs+1−1
@@ -185,7 +185,7 @@ instance FromHttpApiData Char where
185
185
186-- |
186-- |
187-- >>> showVersion <$> parseUrlPiece "1.2.3"
187-- >>> showVersion <$> parseUrlPiece "1.2.3"
188−-- 1.2.3
188+-- Right "1.2.3"
189instance FromHttpApiData Version where
189instance FromHttpApiData Version where
190 parseUrlPiece s =
190 parseUrlPiece s =
191 case reverse (readP_to_S parseVersion (T.unpack s)) of
191 case reverse (readP_to_S parseVersion (T.unpack s)) of