@@ -94,6 +94,8 @@ import Servant.API.TypeErrors
94import Web.HttpApiData
94import Web.HttpApiData
95 (FromHttpApiData, parseHeader, parseQueryParam, parseUrlPiece,
95 (FromHttpApiData, parseHeader, parseQueryParam, parseUrlPiece,
96 parseUrlPieces)
96 parseUrlPieces)
98import Servant.Server.Internal.BasicAuth
100import Servant.Server.Internal.BasicAuth
99import Servant.Server.Internal.Context
101import Servant.Server.Internal.Context
@@ -821,7 +823,7 @@ instance (HasContextEntry context (NamedContext name subContext), HasServer subA
821-------------------------------------------------------------------------------
823-------------------------------------------------------------------------------
823-- Erroring instance for 'HasServer' when a combinator is not fully applied
825-- Erroring instance for 'HasServer' when a combinator is not fully applied
824−instance TypeError (PartialApplication HasServer arr) => HasServer ((arr :: a -> b) :> sub) context
826+instance TypeError (PartialApplication @(Type -> [Type] -> Constraint) HasServer arr) => HasServer ((arr :: a -> b) :> sub) context
826 type ServerT (arr :> sub) _ = TypeError (PartialApplication (HasServer :: * -> [*] -> Constraint) arr)
828 type ServerT (arr :> sub) _ = TypeError (PartialApplication (HasServer :: * -> [*] -> Constraint) arr)
827 route = error "unreachable"
829 route = error "unreachable"
@@ -865,7 +867,7 @@ type HasServerArrowTypeError a b =
865-- XXX: This omits the @context@ parameter, e.g.:
867-- XXX: This omits the @context@ parameter, e.g.:
867-- "There is no instance for HasServer (Bool :> …)". Do we care ?
869-- "There is no instance for HasServer (Bool :> …)". Do we care ?
868−instance {-# OVERLAPPABLE #-} TypeError (NoInstanceForSub HasServer ty) => HasServer (ty :> sub) context
870+instance {-# OVERLAPPABLE #-} TypeError (NoInstanceForSub @(Type -> [Type] -> Constraint) HasServer ty) => HasServer (ty :> sub) context
870instance {-# OVERLAPPABLE #-} TypeError (NoInstanceFor (HasServer api context)) => HasServer api context
872instance {-# OVERLAPPABLE #-} TypeError (NoInstanceFor (HasServer api context)) => HasServer api context