Skip to content

Commit

Permalink
Polymorphise the method field of MultiVerb
Browse files Browse the repository at this point in the history
  • Loading branch information
theophile-scrive committed Jul 8, 2024
1 parent e26ce02 commit 84ccbd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servant/src/Servant/API/MultiVerb.hs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ type family ResponseTypes (as :: [Type]) where
-- instance.
-- * Headers can be attached to individual responses, also without affecting
-- the handler return type.
data MultiVerb (method :: StdMethod) cs (as :: [Type]) (r :: Type)
data MultiVerb (method :: k) cs (as :: [Type]) (r :: Type)

-- | A 'MultiVerb' endpoint with a single response.
type MultiVerb1 m cs a = MultiVerb m cs '[a] (ResponseType a)
Expand Down

0 comments on commit 84ccbd0

Please sign in to comment.