Skip to content

Commit 75cb9ac

Browse files
author
Gaël Deest
committed
Add comment about slightly incorrect error message
1 parent aab7e0d commit 75cb9ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

servant-server/src/Servant/Server/Internal.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,10 @@ type HasServerArrowTypeError a b =
859859
':$$: 'ShowType b
860860

861861
-- Erroring instances for 'HasServer' for unknown API combinators
862+
863+
-- XXX: This omits the @context@ parameter, e.g.:
864+
--
865+
-- "There is no instance for HasServer (Bool :> …)". Do we care ?
862866
instance {-# OVERLAPPABLE #-} TypeError (NoInstanceForSub HasServer ty) => HasServer (ty :> sub) context
863867

864868
instance {-# OVERLAPPABLE #-} TypeError (NoInstanceFor (HasServer api context)) => HasServer api context

0 commit comments

Comments
 (0)