Fix docs for instance FromHttpApiData (Maybe a)
commitab7e794e5547ffec46916818be1371913241b7df
authorNickolay Kudasov <nickolay.kudasov@gmail.com>
dateMon 5 Oct 2015, 23:32 (11 years ago)
parent274f458
Web/HttpApiData.hs+2−2
@@ -177,8 +177,8 @@ instance FromHttpApiData L.Text where parseUrlPiece = Right . L.fromStrict
177177instance FromHttpApiData Day where parseUrlPiece = readEitherUrlPiece
178178
179179-- |
180−-- >>> parseUrlPiece "Just 123" :: Either Text Int
181−-- Just 123
180+-- >>> parseUrlPiece "Just 123" :: Either Text (Maybe Int)
181+-- Right (Just 123)
182182instance FromHttpApiData a => FromHttpApiData (Maybe a) where
183183 parseUrlPiece "Nothing" = return Nothing
184184 parseUrlPiece s =