Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
data a :<|> b infixr 3 Source #
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 :}
a :<|> b infixr 3 |
Functor ((:<|>) a) Source # | |
Foldable ((:<|>) a) Source # | |
Traversable ((:<|>) a) Source # | |
(HasLink * a, HasLink * b) => HasLink * ((:<|>) a b) Source # | |
(Bounded b, Bounded a) => Bounded ((:<|>) a b) Source # | |
(Eq b, Eq a) => Eq ((:<|>) a b) Source # | |
(Show b, Show a) => Show ((:<|>) a b) Source # | |
(Semigroup a, Semigroup b) => Semigroup ((:<|>) a b) Source # | |
(Monoid a, Monoid b) => Monoid ((:<|>) a b) Source # | |
(Enter typ1 m1 n1 ret1, Enter typ2 m2 n2 ret2, (~) (* -> *) m1 m2, (~) (* -> *) n1 n2, (~) * (Entered m1 n1 ((:<|>) typ1 typ2)) ((:<|>) ret1 ret2), (~) * (Entered n1 m1 ((:<|>) ret1 ret2)) ((:<|>) typ1 typ2)) => Enter ((:<|>) typ1 typ2) m1 n1 ((:<|>) ret1 ret2) Source # | |
type MkLink * ((:<|>) a b) Source # | |