From ebb82fd43d26482a1eeeaf9c46cf65686fa55c4d Mon Sep 17 00:00:00 2001 From: Nickolay Kudasov Date: Thu, 19 Jan 2017 23:58:26 +0300 Subject: [PATCH] Bump version and update changelog --- CHANGELOG.md | 6 ++++++ http-api-data.cabal | 2 +- src/Web/Internal/HttpApiData.hs | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e8bbba..55bc45f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +0.3.5 +--- + +* Minor changes: + * Add `LenientData` which always succeeds to parse (see [#45](https://github.com/fizruk/http-api-data/pull/45)). + 0.3.4 --- diff --git a/http-api-data.cabal b/http-api-data.cabal index f3e3180..b7f1781 100644 --- a/http-api-data.cabal +++ b/http-api-data.cabal @@ -1,5 +1,5 @@ name: http-api-data -version: 0.3.4 +version: 0.3.5 license: BSD3 license-file: LICENSE author: Nickolay Kudasov diff --git a/src/Web/Internal/HttpApiData.hs b/src/Web/Internal/HttpApiData.hs index 1e8131b..2fc1fcd 100644 --- a/src/Web/Internal/HttpApiData.hs +++ b/src/Web/Internal/HttpApiData.hs @@ -597,6 +597,8 @@ instance FromHttpApiData UUID.UUID where -- | Lenient parameters. 'FromHttpApiData' combinators always return `Right`. +-- +-- @since 0.3.5 newtype LenientData a = LenientData { getLenientData :: Either Text a } deriving (Eq, Ord, Show, Read, Typeable, Data, Functor, Foldable, Traversable)