diff --git a/servant/src/Servant/Links.hs b/servant/src/Servant/Links.hs index 8f9c553d..ce07e22d 100644 --- a/servant/src/Servant/Links.hs +++ b/servant/src/Servant/Links.hs @@ -649,7 +649,7 @@ simpleToLink _ toA _ = toLink toA (Proxy :: Proxy sub) -- Erroring instance for 'HasLink' when a combinator is not fully applied instance TypeError (PartialApplication HasLink arr) => HasLink ((arr :: a -> b) :> sub) where - type MkLink (arr :> sub) _ = TypeError (PartialApplication HasLink arr) + type MkLink (arr :> sub) _ = TypeError (PartialApplication (HasLink :: * -> Constraint) arr) toLink = error "unreachable" -- Erroring instances for 'HasLink' for unknown API combinators