Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
SMSAero.Utils
- class DistributiveClient client client' where
- distributeClient :: client -> client'
Documentation
class DistributiveClient client client' where Source
Distribute a client looking like
a -> (b :| ... :| c)
into
(a -> b) :| ... :| (a -> c)
This is useful to bring authentication credentials to individual client endpoint queries.
Methods
distributeClient :: client -> client' Source
Instances
(DistributiveClient (a -> b) b', DistributiveClient (a -> c) c') => DistributiveClient (a -> (:<|>) b c) ((:<|>) b' c') Source | |
DistributiveClient (a -> b) (a -> b) Source |