packages feed

apiary-cookie 0.11.0 → 0.12.0

raw patch · 2 files changed

+4/−8 lines, 2 filesdep −taggeddep ~apiaryPVP ok

version bump matches the API change (PVP)

Dependencies removed: tagged

Dependency ranges changed: apiary

API changes (from Hackage documentation)

- Web.Apiary.Cookie: cookie :: (Strategy w, Query a, Functor n, Monad n) => ByteString -> Proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m b
+ Web.Apiary.Cookie: cookie :: (Strategy w, Query a, Functor n, Monad n) => ByteString -> proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m b
- Web.Apiary.Cookie.Internal: cookie :: (Strategy w, Query a, Functor n, Monad n) => ByteString -> Proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m b
+ Web.Apiary.Cookie.Internal: cookie :: (Strategy w, Query a, Functor n, Monad n) => ByteString -> proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m b

Files

apiary-cookie.cabal view
@@ -1,5 +1,5 @@ name:                apiary-cookie-version:             0.11.0+version:             0.12.0 synopsis:            Cookie support for apiary web framework. description:   example: <https://github.com/philopon/apiary/blob/master/examples/auth.hs>@@ -22,13 +22,10 @@   other-extensions:       build-depends:       base               >=4.6   && <4.8                      , bytestring         >=0.10  && <0.11-                     , apiary             >=0.9   && <0.12+                     , apiary             >=0.12  && <0.13                      , cookie             >=0.4   && <0.5                      , blaze-builder      >=0.3   && <0.4                      , time               >=1.4   && <1.5--  if impl(ghc < 7.8)-    build-depends:     tagged             >=0.7 && <0.8    hs-source-dirs:      src   ghc-options:         -O2 -Wall
src/Web/Apiary/Cookie/Internal.hs view
@@ -13,7 +13,6 @@ import Web.Apiary import Web.Cookie import Data.Maybe-import Data.Proxy import Data.Time  import Control.Monad.Apiary.Filter.Internal@@ -39,10 +38,10 @@ -- @ cookie :: (Strategy w, Query a, Functor n, Monad n)        => S.ByteString-       -> Proxy (w a)+       -> proxy (w a)        -> ApiaryT (SNext w as a) n m b        -> ApiaryT as n m b-cookie k p = function $ \l r -> readStrategy (readQuery . Just) ((k ==) . fst) p (cookie' r) l+cookie k p = function id $ \l r -> readStrategy (readQuery . Just) ((k ==) . fst) p (cookie' r) l  cookie' :: Request -> [(S.ByteString, S.ByteString)] cookie' =