git.iko.soy/typeable/http-api-data
on master help sign in
Bump version and update changelog
ebb82fdNickolay Kudasov
CHANGELOG.md+6
@@ -1,3 +1,9 @@
1+0.3.5
2+---
3+
4+* Minor changes:
5+ * Add `LenientData` which always succeeds to parse (see [#45](https://github.com/fizruk/http-api-data/pull/45)).
6+
10.3.4
70.3.4
2---
8---
3
9
http-api-data.cabal+1−1
@@ -1,5 +1,5 @@
1name: http-api-data
1name: http-api-data
2−version: 0.3.4
2+version: 0.3.5
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: Nickolay Kudasov <nickolay.kudasov@gmail.com>
5author: Nickolay Kudasov <nickolay.kudasov@gmail.com>
src/Web/Internal/HttpApiData.hs+2
@@ -597,6 +597,8 @@ instance FromHttpApiData UUID.UUID where
597
597
598
598
599-- | Lenient parameters. 'FromHttpApiData' combinators always return `Right`.
599-- | Lenient parameters. 'FromHttpApiData' combinators always return `Right`.
600+--
601+-- @since 0.3.5
600newtype LenientData a = LenientData { getLenientData :: Either Text a }
602newtype LenientData a = LenientData { getLenientData :: Either Text a }
601 deriving (Eq, Ord, Show, Read, Typeable, Data, Functor, Foldable, Traversable)
603 deriving (Eq, Ord, Show, Read, Typeable, Data, Functor, Foldable, Traversable)
602
604