Fix typeable issue in 7.8.4
This commit is contained in:
parent
436046eb33
commit
f24728fdac
1 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
||||||
{-# LANGUAGE DeriveFunctor #-}
|
{-# LANGUAGE DeriveFunctor #-}
|
||||||
{-# LANGUAGE DeriveGeneric #-}
|
{-# LANGUAGE DeriveGeneric #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE DeriveDataTypeable #-}
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
{-# LANGUAGE TypeFamilies #-}
|
||||||
|
|
||||||
module Servant.Server.Internal.Auth where
|
module Servant.Server.Internal.Auth where
|
||||||
|
|
||||||
|
@ -28,6 +29,7 @@ type family AuthReturnType a :: *
|
||||||
-- | Handlers for AuthProtected resources
|
-- | Handlers for AuthProtected resources
|
||||||
newtype AuthHandler r usr = AuthHandler
|
newtype AuthHandler r usr = AuthHandler
|
||||||
{ unAuthHandler :: r -> ExceptT ServantErr IO usr }
|
{ unAuthHandler :: r -> ExceptT ServantErr IO usr }
|
||||||
|
deriving (Generic, Typeable)
|
||||||
|
|
||||||
mkAuthHandler :: (r -> ExceptT ServantErr IO usr) -> AuthHandler r usr
|
mkAuthHandler :: (r -> ExceptT ServantErr IO usr) -> AuthHandler r usr
|
||||||
mkAuthHandler = AuthHandler
|
mkAuthHandler = AuthHandler
|
||||||
|
|
Loading…
Reference in a new issue