| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Servant.API.Alternative
Documentation
Union of two APIs, first takes precedence in case of overlap.
Example:
>>>:{type MyApi = "books" :> Get '[JSON] [Book] -- GET /books :<|> "books" :> ReqBody '[JSON] Book :> Post '[JSON] () -- POST /books :}
Constructors
| a :<|> b infixr 8 |