Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- admin :: Components components names api => [ByteString] -> components -> Application
- with :: forall a (names :: [Symbol]) apis (name :: Symbol) api. Components a names apis => Component name api -> a -> ComponentList (name ': names) ((name :> api) :<|> apis)
Documentation
admin :: Components components names api => [ByteString] -> components -> Application Source #
Create WAI application containing the Haskell Admin server based on the provided Components and authentication tokens
with :: forall a (names :: [Symbol]) apis (name :: Symbol) api. Components a names apis => Component name api -> a -> ComponentList (name ': names) ((name :> api) :<|> apis) infixr 9 #
Compose Components
This function combines a Component
with another Component
,
or with a ComponentList
, producing a ComponentList
.
It collects the names of the components, and keeps the expected API structure.