A variant of Verb that can have any of a number of response values and status codes.
FUTUREWORK: it would be nice to make Verb a special case of UVerb, and only write
instances for HasServer etc. for the latter, getting them for the former for free.
Something like:
type Verb method statusCode contentTypes a = UVerb method contentTypes [WithStatus statusCode a]Backwards compatibility is tricky, though: this type alias would mean people would have to
use respond instead of pure or return, so all old handlers would have to be rewritten.
Instances5HasLink, HasServer, AtMostOneFragment, MkLink, ServerT
HasLink (UVerb m ct a)Defined in servant-0.20.2 · Servant.Links(ReflectMethod method, AllMime contentTypes, All (IsServerResourceWithStatus contentTypes) as, Unique (Statuses as)) => HasServer (UVerb method contentTypes as) contextDefined in servant-server-0.20.2 · Servant.Server.UVerb · orphanAtMostOneFragment (UVerb m cts as)Defined in servant-0.20.2 · Servant.API.TypeLeveltype MkLink (UVerb m ct a) r = rDefined in servant-0.20.2 · Servant.Linkstype ServerT (UVerb method contentTypes as) m = m (Union as)Defined in servant-server-0.20.2 · Servant.Server.UVerb · orphan