diff --git a/apiary-cookie.cabal b/apiary-cookie.cabal
--- a/apiary-cookie.cabal
+++ b/apiary-cookie.cabal
@@ -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
diff --git a/src/Web/Apiary/Cookie/Internal.hs b/src/Web/Apiary/Cookie/Internal.hs
--- a/src/Web/Apiary/Cookie/Internal.hs
+++ b/src/Web/Apiary/Cookie/Internal.hs
@@ -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' = 
