packages feed

http-api-data 0.3.2 → 0.3.3

raw patch · 4 files changed

+13/−6 lines, 4 filesdep ~bytestringdep ~containersdep ~hashable

Dependency ranges changed: bytestring, containers, hashable, text, time, unordered-containers, uri-bytestring

Files

CHANGELOG.md view
@@ -1,3 +1,10 @@+0.3.3+---++* Minor changes:+    * Expose `Form` constructor from `Web.FromUrlEncoded` (see [#40](https://github.com/fizruk/http-api-data/pull/40));+    * Fix example in `FromForm` documentation (see [#39](https://github.com/fizruk/http-api-data/issues/39)).+ 0.3.2 --- 
http-api-data.cabal view
@@ -1,5 +1,5 @@ name:            http-api-data-version:         0.3.2+version:         0.3.3 license:         BSD3 license-file:    LICENSE author:          Nickolay Kudasov <nickolay.kudasov@gmail.com>
src/Web/FormUrlEncoded.hs view
@@ -9,8 +9,8 @@   ToFormKey(..),   FromFormKey(..), -  -- * Abstract 'Form' type-  Form,+  -- * 'Form' type+  Form(..),    -- * Encoding and decoding @'Form'@s   urlEncodeAsForm,
src/Web/Internal/FormUrlEncoded.hs view
@@ -355,9 +355,9 @@ --   , age  :: Int } -- -- instance 'FromForm' Person where---   'fromForm' (Form m) = Person---     '<$>' 'parseUnique' "name" m---     '<*>' 'parseUnique' "age"  m+--   'fromForm' f = Person+--     '<$>' 'parseUnique' "name" f+--     '<*>' 'parseUnique' "age"  f -- @ -- -- Instead of manually writing @'FromForm'@ instances you can