| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Roboservant.Types.ReifiedApi.Server
Documentation
class NormalizeFunction m where Source #
Instances
| (Typeable x, Hashable x, Breakdown x) => NormalizeFunction (ClientM x) Source # | |
| (Typeable x, Hashable x, Breakdown x) => NormalizeFunction (Handler x) Source # | |
| NormalizeFunction x => NormalizeFunction (r -> x) Source # | |
class FlattenServer api where Source #
Instances
| (FlattenServer api, Endpoints endpoint ~ '[endpoint]) => FlattenServer (endpoint :<|> api) Source # | |
Defined in Roboservant.Types.ReifiedApi.Server | |
| Endpoints api ~ '[api] => FlattenServer (x :> api) Source # | |
Defined in Roboservant.Types.ReifiedApi.Server | |
| FlattenServer (Verb method statusCode contentTypes responseType) Source # | |
Defined in Roboservant.Types.ReifiedApi.Server | |
data Bundled endpoints where Source #
Constructors
| AnEndpoint :: Server endpoint -> Bundled endpoints -> Bundled (endpoint ': endpoints) | |
| NoEndpoints :: Bundled '[] |
class ToReifiedApi endpoints where Source #
Methods
toReifiedApi :: Bundled endpoints -> Proxy endpoints -> ReifiedApi Source #
Instances
| ToReifiedApi ('[] :: [k]) Source # | |
Defined in Roboservant.Types.ReifiedApi.Server Methods toReifiedApi :: Bundled '[] -> Proxy '[] -> ReifiedApi Source # | |
| (NormalizeFunction (ServerT endpoint Handler), Normal (ServerT endpoint Handler) ~ Curried (EndpointArgs endpoint) (IO (Either InteractionError (NonEmpty (Dynamic, Int)))), ToReifiedEndpoint endpoint, ToReifiedApi endpoints) => ToReifiedApi (endpoint ': endpoints :: [Type]) Source # | |
Defined in Roboservant.Types.ReifiedApi.Server Methods toReifiedApi :: Bundled (endpoint ': endpoints) -> Proxy (endpoint ': endpoints) -> ReifiedApi Source # | |
type ReifiedApi = [(ApiOffset, ReifiedEndpoint)] Source #