Skip to content

Commit

Permalink
Remove extraneous HasStatus instance in UVerb (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchoutri committed Feb 26, 2023
1 parent ea87e97 commit aaeee88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelog.d/1571
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ description: {
UVerb endpoints are now supported by servant-auth-server and can be used under the
Auth combinator when writing servers. It is still unsupported by
servant-auth-client.

This PR also brings Headers support in UVerb responses
}
3 changes: 0 additions & 3 deletions servant/src/Servant/API/UVerb.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ statusOf = const (statusVal (Proxy :: Proxy (StatusOf a)))
instance HasStatus NoContent where
type StatusOf NoContent = 204

instance HasStatus a => HasStatus (Headers hs a) where
type StatusOf (Headers hs a) = StatusOf a

class HasStatuses (as :: [*]) where
type Statuses (as :: [*]) :: [Nat]
statuses :: Proxy as -> [Status]
Expand Down

0 comments on commit aaeee88

Please sign in to comment.