Skip to content

Commit 72ea4df

Browse files
committed
Fix doctests
1 parent 9b4716f commit 72ea4df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,10 @@ instance {-# OVERLAPPABLE #-} TypeError (NoInstanceForSub
8989
HasServer ty) => HasServer (ty :> sub) context
9090

9191
instance {-# OVERLAPPABLE #-} TypeError (NoInstanceFor (HasServer api context)) => HasServer api context
92+
93+
-- $setup
94+
-- >>> :set -XDataKinds
95+
-- >>> :set -XTypeOperators
96+
-- >>> import Data.Typeable
97+
-- >>> import Servant.API
98+
-- >>> import Servant.Server

0 commit comments

Comments
 (0)