Skip to content

Commit aaeee88

Browse files
authored
Remove extraneous HasStatus instance in UVerb (#1652)
1 parent ea87e97 commit aaeee88

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

changelog.d/1571

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ description: {
55
UVerb endpoints are now supported by servant-auth-server and can be used under the
66
Auth combinator when writing servers. It is still unsupported by
77
servant-auth-client.
8+
9+
This PR also brings Headers support in UVerb responses
810
}

servant/src/Servant/API/UVerb.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ statusOf = const (statusVal (Proxy :: Proxy (StatusOf a)))
5353
instance HasStatus NoContent where
5454
type StatusOf NoContent = 204
5555

56-
instance HasStatus a => HasStatus (Headers hs a) where
57-
type StatusOf (Headers hs a) = StatusOf a
58-
5956
class HasStatuses (as :: [*]) where
6057
type Statuses (as :: [*]) :: [Nat]
6158
statuses :: Proxy as -> [Status]

0 commit comments

Comments
 (0)