git.iko.soy/typeable/servant
on master help sign in
fix compilation error: move import declaration and add cookie to dependencies
commit4b9d60ca8dc72d666a5d1e2327f4b72506288a25 authorKazuki Okamoto <kazuki.okamoto@kakkun61.com> dateWed 13 Dec 2017, 16:52 (9 years ago) parente6c492a
2 files changed+2−1
doc/tutorial/Authentication.lhs+1−1 doc/tutorial/tutorial.cabal+1
doc/tutorial/Authentication.lhs+1−1
@@ -69,6 +69,7 @@ import Servant.Server (BasicAuthCheck (BasicAuthCheck),
6969import Servant.Server.Experimental.Auth (AuthHandler, AuthServerData,
7070 mkAuthHandler)
7171import Servant.Server.Experimental.Auth()
72+import Web.Cookie (parseCookies)
7273
7374-- | private data that needs protection
7475newtype PrivateData = PrivateData { ssshhh :: Text }
@@ -285,7 +286,6 @@ method (note: we depend upon [`cookie`](https://hackage.haskell.org/package/cook
285286`parseCookies` for this):
286287
287288```haskell
288−import Web.Cookie (parseCookies)
289289
290290--- | The auth handler wraps a function from Request -> Handler Account.
291291--- We look for a token in the request headers that we expect to be in the cookie.
doc/tutorial/tutorial.cabal+1
@@ -45,6 +45,7 @@ library
4545 , transformers
4646 , markdown-unlit >= 0.4
4747 , http-client
48+ , cookie
4849 default-language: Haskell2010
4950 ghc-options: -Wall -pgmL markdown-unlit
5051 build-tool-depends: markdown-unlit:markdown-unlit