Fix docs for FromHttpApiData Version
commit621e6f4a3bc1e63345a1bdfd519c590b32f43d85
authorNickolay Kudasov <nickolay.kudasov@gmail.com>
dateTue 6 Oct 2015, 00:50 (11 years ago)
parentf00e0a3
Web/HttpApiData.hs+1−1
@@ -185,7 +185,7 @@ instance FromHttpApiData Char where
185185
186186-- |
187187-- >>> showVersion <$> parseUrlPiece "1.2.3"
188−-- 1.2.3
188+-- Right "1.2.3"
189189instance FromHttpApiData Version where
190190 parseUrlPiece s =
191191 case reverse (readP_to_S parseVersion (T.unpack s)) of