From 4b9d60ca8dc72d666a5d1e2327f4b72506288a25 Mon Sep 17 00:00:00 2001 From: Kazuki Okamoto Date: Wed, 13 Dec 2017 16:52:44 +0900 Subject: [PATCH] fix compilation error: move import declaration and add cookie to dependencies --- doc/tutorial/Authentication.lhs | 2 +- doc/tutorial/tutorial.cabal | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/tutorial/Authentication.lhs b/doc/tutorial/Authentication.lhs index 591bc595..b68e0300 100644 --- a/doc/tutorial/Authentication.lhs +++ b/doc/tutorial/Authentication.lhs @@ -69,6 +69,7 @@ import Servant.Server (BasicAuthCheck (BasicAuthCheck), import Servant.Server.Experimental.Auth (AuthHandler, AuthServerData, mkAuthHandler) import Servant.Server.Experimental.Auth() +import Web.Cookie (parseCookies) -- | private data that needs protection newtype PrivateData = PrivateData { ssshhh :: Text } @@ -285,7 +286,6 @@ method (note: we depend upon [`cookie`](https://hackage.haskell.org/package/cook `parseCookies` for this): ```haskell -import Web.Cookie (parseCookies) --- | The auth handler wraps a function from Request -> Handler Account. --- We look for a token in the request headers that we expect to be in the cookie. diff --git a/doc/tutorial/tutorial.cabal b/doc/tutorial/tutorial.cabal index 7b854f2f..c7e5ac7a 100644 --- a/doc/tutorial/tutorial.cabal +++ b/doc/tutorial/tutorial.cabal @@ -45,6 +45,7 @@ library , transformers , markdown-unlit >= 0.4 , http-client + , cookie default-language: Haskell2010 ghc-options: -Wall -pgmL markdown-unlit build-tool-depends: markdown-unlit:markdown-unlit