Skip to content

Commit 28492a6

Browse files
committed
Deprecate UVerb (the hard version).
1 parent 27e2675 commit 28492a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

servant/src/Servant/API/UVerb.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ instance HasStatus a => HasStatus (Headers ls a) where
9696
-- | WARNING: UVerb is deprecated. Please use MultiVerb instead!
9797
--
9898
-- A variant of 'Verb' that can have any of a number of response values and status codes.
99+
{-# DEPRECATED UVerb "Use MultiVerb instead; if you find that `MultiVerb` doesn't allow you to do the things you're doing with `UVerb`, please [open an issue](https://github.com/haskell-servant/servant/issues)" #-}
99100
data UVerb (method :: StdMethod) (contentTypes :: [Type]) (as :: [Type])
100101

101102
instance {-# OVERLAPPING #-} MimeRender JSON a => MimeRender JSON (WithStatus _status a) where

0 commit comments

Comments
 (0)