haskell-admin-core-1.0.0.0: Core Modules of Haskell Admin
Safe HaskellNone
LanguageHaskell2010

Admin.Components.ComponentsClass

Synopsis

Documentation

with :: Components a names apis => Component name api -> a -> ComponentList (name ': names) ((name :> api) :<|> apis) infixr 9 Source #

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.

Usage: >>> componentA with componentB with componentC

class ToServantAPI names apis => Components a (names :: [Symbol]) apis | a -> names apis where Source #

Instances

Instances details
ToServantAPI names apis => Components (ComponentList names apis) names apis Source # 
Instance details

Defined in Admin.Components.ComponentsClass

Methods

serveAll' :: ComponentList names apis -> Server apis Source #

describe :: ComponentList names apis -> [ComponentDescription] Source #

(KnownSymbol name, HasServer api ('[] :: [Type])) => Components (Component name api) '[name] (name :> api) Source # 
Instance details

Defined in Admin.Components.ComponentsClass

Methods

serveAll' :: Component name api -> Server (name :> api) Source #

describe :: Component name api -> [ComponentDescription] Source #