From f24728fdacffd8a1e45bddc3d18646147bb95757 Mon Sep 17 00:00:00 2001 From: aaron levin Date: Sat, 16 Jan 2016 19:22:00 +0100 Subject: [PATCH] Fix typeable issue in 7.8.4 --- servant-server/src/Servant/Server/Internal/Auth.hs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/servant-server/src/Servant/Server/Internal/Auth.hs b/servant-server/src/Servant/Server/Internal/Auth.hs index b0aaa220..6e15c7a5 100644 --- a/servant-server/src/Servant/Server/Internal/Auth.hs +++ b/servant-server/src/Servant/Server/Internal/Auth.hs @@ -1,7 +1,8 @@ -{-# LANGUAGE DeriveFunctor #-} -{-# LANGUAGE DeriveGeneric #-} -{-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE DeriveFunctor #-} +{-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE DeriveDataTypeable #-} +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE TypeFamilies #-} module Servant.Server.Internal.Auth where @@ -28,6 +29,7 @@ type family AuthReturnType a :: * -- | Handlers for AuthProtected resources newtype AuthHandler r usr = AuthHandler { unAuthHandler :: r -> ExceptT ServantErr IO usr } + deriving (Generic, Typeable) mkAuthHandler :: (r -> ExceptT ServantErr IO usr) -> AuthHandler r usr mkAuthHandler = AuthHandler