Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- class HasHandler api where
- getHandler :: MonadIO m => Proxy m -> Proxy api -> ServerT api m
Class
class HasHandler api where Source #
Typeclass for extracting the handler of an API.
Instances
HasHandler EmptyAPI Source # | |
(HasHandler a, HasHandler b) => HasHandler (a :<|> b :: Type) Source # | |
HasHandler b => HasHandler (a :> b :: Type) Source # | |
HasHandler b => HasHandler (Description sym :> b :: Type) Source # | |
Defined in Servant.Hateoas.HasHandler getHandler :: forall (m :: Type -> Type). MonadIO m => Proxy m -> Proxy (Description sym :> b) -> ServerT (Description sym :> b) m Source # | |
HasHandler b => HasHandler (Summary sym :> b :: Type) Source # | |
HasHandler b => HasHandler (Fragment a :> b :: Type) Source # | |
(HasHandler api, KnownSymbol sym) => HasHandler (Sym sym :> api :: Type) Source # | |