Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
nbacquey committed Mar 21, 2022
1 parent 0dd3821 commit fce3a10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions servant-server/src/Servant/Server/TypeErrors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ type HasServerArrowTypeError a b =
instance {-# OVERLAPPABLE #-} TypeError (NoInstanceForSub HasServer ty) => HasServer (ty :> sub) context

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

-- $setup
-- >>> :set -XDataKinds
-- >>> :set -XTypeOperators
-- >>> import Data.Typeable
-- >>> import Servant.API
-- >>> import Servant.Server

0 comments on commit fce3a10

Please sign in to comment.